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:
Eric Haszlakiewicz
2016-10-29 15:13:16 -04:00
parent ecdc14f535
commit 33339ae595
2 changed files with 51 additions and 0 deletions

View File

@@ -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
==================================