Eric Haszlakiewicz 3fcffe1bb0 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.
2012-04-28 13:26:09 -05:00
2012-04-22 14:21:27 -05:00
2010-10-07 01:05:14 +00:00
2012-04-12 11:47:56 -07:00
2012-04-12 11:51:23 -07:00
2012-04-12 11:47:56 -07:00
2012-04-12 11:47:56 -07:00

Building on Unix with git, gcc and autotools

Home page for json-c:
  http://oss.metaparadigm.com/json-c/

Github repo for json-c:
  https://github.com/json-c/json-c

    $ git clone https://github.com/json-c/json-c.git
    $ cd json-c
    $ sh autogen.sh

Then 

    $ ./configure
    $ make
    $ make install

To build and run the test programs run 

    $ make check

Linking to libjson

If your system has pkgconfig then you can just add this to your makefile

CFLAGS += $(shell pkg-config --cflags json)
LDFLAGS += $(shell pkg-config --libs json)
Description
https://github.com/json-c/json-c is the official code repository for json-c. See the wiki for release tarballs for download. API docs at http://json-c.github.io/json-c/
Readme 5.7 MiB
Languages
C 86.8%
CMake 6.1%
Shell 3.4%
Meson 2.5%
C++ 0.9%
Other 0.3%