Eric Haszlakiewicz 4c7f38eb9b Extend test1 and test2 to run using json_object_to_json_string_ext() based on an additional command line parameter.
Extend the run_output_test() function so we actually can pass command line
 parameters and so we can support different output files for the same test
 executable.
Also provide some hints about what to do if a test fails (i.e. set VERBOSE=1).
2012-04-28 14:14:26 -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
android_external_json-c
Readme 469 KiB
Languages
C 94.4%
M4 2%
Makefile 1.8%
HTML 1.5%
Shell 0.2%