]> git.ipfire.org Git - thirdparty/json-c.git/commit
Add a json_object_to_json_string_ext() function to allow the formatting of output...
authorEric Haszlakiewicz <erh+git@nimenees.com>
Sat, 28 Apr 2012 18:26:09 +0000 (13:26 -0500)
committerEric Haszlakiewicz <erh+git@nimenees.com>
Sat, 28 Apr 2012 18:26:09 +0000 (13:26 -0500)
commit3fcffe1bb01de6978f4516abd49a3b3c9e2cd2f2
tree732aac674963768bf2aa9e3abc3cf5b7f1937758
parentf931f61851c949f8ab943dee8935b0d775346178
Add a json_object_to_json_string_ext() function to allow the formatting of output to be selected.
There are now three options: JSON_C_TO_STRING_SPACED, JSON_C_TO_STRING_PLAIN and JSON_C_TO_STRING_PRETTY.
This also add a json_object_to_file_ext() that takes the same flags.
Existing output of json_object_to_json_string() is unchanged, and uses JSON_C_TO_STRING_SPACED.
Thanks fo Grant Edwards for the initial patches.
json_object.c
json_object.h
json_object_private.h
json_util.c
json_util.h