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
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
No description provided
Readme 4.7 MiB
Languages
C 88.7%
CMake 6.4%
Shell 3.6%
C++ 1%
Makefile 0.3%