mirror of
https://github.com/json-c/json-c.git
synced 2026-03-27 00:49:07 +08:00
probably worth an option for this
This commit is contained in:
@@ -23,8 +23,9 @@ int main(int argc, char **argv)
|
||||
|
||||
MC_SET_DEBUG(1);
|
||||
|
||||
new_obj = json_tokener_parse("[1.2,3.4,123456.78,5.0]");
|
||||
new_obj = json_tokener_parse("[1.2,3.4,123456.78,5.0,2.3e10]");
|
||||
printf("new_obj.to_string()=%s\n", json_object_to_json_string(new_obj));
|
||||
printf("new_obj.to_string()=%s\n", json_object_to_json_string_ext(new_obj,JSON_C_TO_STRING_NOZERO));
|
||||
json_object_put(new_obj);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user