|
|
| version 1.17, 2012/03/16 09:24:07 | 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 173 static int json_callback(Json *json, int | Line 173 static int json_callback(Json *json, int |
| set_json_value(json, new VString(*json_string(json, value))); | set_json_value(json, new VString(*json_string(json, value))); |
| break; | break; |
| case JSON_T_NULL: | case JSON_T_NULL: |
| set_json_value(json, new VVoid()); | set_json_value(json, VVoid::get()); |
| break; | break; |
| case JSON_T_TRUE: | case JSON_T_TRUE: |
| set_json_value(json, &VBool::get(true)); | set_json_value(json, &VBool::get(true)); |
| 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())){ |