mirror of
https://github.com/json-c/json-c.git
synced 2026-03-26 08:29:06 +08:00
Use json_visit() to clear the serializer data set when parsing so the output from test_parse reflects the actual values parsed.
This commit is contained in:
@@ -30,6 +30,11 @@ new_obj.to_string()={ "foo": "bar" }
|
||||
new_obj.to_string()={ "foo": "bar", "baz": null, "bool0": true }
|
||||
new_obj.to_string()={ "foo": [ null, "foo" ] }
|
||||
new_obj.to_string()={ "abc": 12, "foo": "bar", "bool0": false, "bool1": true, "arr": [ 1, 2, 3, null, 5 ] }
|
||||
new_obj.to_string()={ "abc": "blue\nred\ngreen" }
|
||||
new_obj.to_string()=[ 0 ]
|
||||
new_obj.to_string()=[ 0 ]
|
||||
new_obj.to_string()=null
|
||||
new_obj.to_string()=[ 9223372036854775807 ]
|
||||
==================================
|
||||
json_tokener_parse_versbose() OK
|
||||
==================================
|
||||
|
||||
Reference in New Issue
Block a user