Diff for /parser3/src/classes/json.C between versions 1.18 and 1.20

version 1.18, 2012/04/24 22:41:09 version 1.20, 2012/05/28 10:43:58
Line 162  static int json_callback(Json *json, int Line 162  static int json_callback(Json *json, int
                         json->key = json_string(json, value);                          json->key = json_string(json, value);
                         break;                          break;
                 case JSON_T_INTEGER:                  case JSON_T_INTEGER:
                         set_json_value(json, new VInt((int)value->vu.integer_value));                          set_json_value(json, new VDouble((double)value->vu.integer_value));
                         break;                          break;
                 case JSON_T_FLOAT:                  case JSON_T_FLOAT:
                         if (json->handle_double){                          if (json->handle_double){
Line 385  static void _string(Request& r, MethodPa Line 385  static void _string(Request& r, MethodPa
                                 } else if(key == "file" && value->is_string()){                                  } else if(key == "file" && value->is_string()){
                                         const String& svalue=value->as_string();                                          const String& svalue=value->as_string();
                                         if(!json.set_file_format(svalue))                                          if(!json.set_file_format(svalue))
                                                 throw Exception(PARSER_RUNTIME, &svalue, "must be 'base64' or 'text'");                                                  throw Exception(PARSER_RUNTIME, &svalue, "must be 'base64', 'text' or 'stat'");
                                         valid_options++;                                          valid_options++;
 #ifdef XML  #ifdef XML
                                 } else if(key == "xdoc" && (vvalue = value->get_hash())){                                  } else if(key == "xdoc" && (vvalue = value->get_hash())){

Removed from v.1.18  
changed lines
  Added in v.1.20


E-mail: