Diff for /parser3/src/classes/json.C between versions 1.59 and 1.60

version 1.59, 2024/09/10 19:09:56 version 1.60, 2024/09/10 19:15:48
Line 10 Line 10
   
 #include "pa_request.h"  #include "pa_request.h"
 #include "pa_vbool.h"  #include "pa_vbool.h"
 //#include "pa_varray.h"  #include "pa_varray.h"
   
 #include "pa_charset.h"  #include "pa_charset.h"
 #include "pa_charsets.h"  #include "pa_charsets.h"
Line 153  static int json_callback(Json *json, int Line 153  static int json_callback(Json *json, int
                                 json->key=NULL;                                  json->key=NULL;
                                 json->stack.push(new VHash);                                  json->stack.push(new VHash);
                         } else {                          } else {
                                 VHashBase *v = new VHash;                                  VHashBase *v = json->handle_array ? (VHashBase *)new VArray : (VHashBase *)new VHash;
 //                              VHashBase *v = json->handle_array ? (VHashBase *)new VArray : (VHashBase *)new VHash;  
                                 if (json->stack.count()) set_json_value(json, v);                                  if (json->stack.count()) set_json_value(json, v);
                                 json->stack.push(v);                                  json->stack.push(v);
                         }                          }

Removed from v.1.59  
changed lines
  Added in v.1.60


E-mail: