C Shell
#1 Compare This branch is 478 commits behind json-c:master.
Latest commit 276123e May 26, 2011 @jehiah handle NULL passed to json_objct_object_get
Patch via Nikola Pajkovsky


git-svn-id: http://svn.metaparadigm.com/svn/json-c/trunk@75 327403b1-1117-474d-bef2-5cb71233fd97
Permalink
Failed to load latest commit information.
.gitignore set svn:ignore and .gitignore to skip intermediate build files Dec 7, 2010
AUTHORS * printbuf.c - C. Watford (christopher dot watford at gmail dot com) Mar 13, 2007
COPYING * Add escaping of backslash to json output Mar 13, 2007
ChangeLog Note a few recent changes in the ChangeLog. May 3, 2011
Doxyfile * Add int64 support. Two new functions json_object_net_int64 and Oct 6, 2010
INSTALL * printbuf.c - C. Watford (christopher dot watford at gmail dot com) Mar 13, 2007
Makefile.am Bump up the libtool library version to "1:0:1" (aka libjson.0.1.0) si… May 3, 2011
NEWS Add a dummy "NEWS" file to automake doesn't complain. May 3, 2011
README Note the json-c home page in the README file. May 3, 2011
README-WIN32.html Ooops. remove literal ^M (copy and paste problem) May 12, 2009
README.html Add mailing lists to README.html Aug 19, 2009
arraylist.c * Rename min and max so we can never clash with C or C++ std library Jul 25, 2009
arraylist.h * Don't use this as a variable, so we can compile with a C++ compiler Feb 25, 2009
autogen.sh Update executable properties Oct 7, 2010
bits.h add json_tokener_parse_verbose, and return NULL on parser errors Dec 8, 2010
config.h.in * Add int64 support. Two new functions json_object_net_int64 and Oct 6, 2010
config.h.win32 * Make headers C++ compatible by change *this to *obj Mar 13, 2007
configure.in Bump the version to 0.10, since that's what we were at. May 3, 2011
debug.c * Fixed warning reported by adding -Wstrict-prototypes Feb 25, 2009
debug.h * Don't use this as a variable, so we can compile with a C++ compiler Feb 25, 2009
json-c.vcproj * printbuf.c - C. Watford (christopher dot watford at gmail dot com) Mar 13, 2007
json.h * Make headers C++ compatible by change *this to *obj Mar 13, 2007
json.pc.in * printbuf.c - C. Watford (christopher dot watford at gmail dot com) Mar 13, 2007
json_inttypes.h * Add int64 support. Two new functions json_object_net_int64 and Oct 6, 2010
json_object.c handle NULL passed to json_objct_object_get May 26, 2011
json_object.h move definition of json_object_iter to public header to enable extern… May 25, 2011
json_object_private.h move definition of json_object_iter to public header to enable extern… May 25, 2011
json_tokener.c add json_tokener_parse_verbose, and return NULL on parser errors Dec 8, 2010
json_tokener.h add json_tokener_parse_verbose, and return NULL on parser errors Dec 8, 2010
json_util.c Add a json_type_to_name() function which returns a string that descri… May 3, 2011
json_util.h Add a json_type_to_name() function which returns a string that descri… May 3, 2011
linkhash.c * Fix subtle bug in linkhash where lookup could hang after all slots Aug 27, 2009
linkhash.h * Don't use this as a variable, so we can compile with a C++ compiler Feb 25, 2009
parse_int64.test Update executable properties Oct 7, 2010
printbuf.c Simplify things by storing integer values only as int64_t's internall… Dec 7, 2010
printbuf.h * Correct comment describing printbuf_memappend in printbuf.h Aug 20, 2009
test-defs.sh Update executable properties Oct 7, 2010
test1.c add json_tokener_parse_verbose, and return NULL on parser errors Dec 8, 2010
test1.expected * Add int64 support. Two new functions json_object_net_int64 and Oct 6, 2010
test1.test Update executable properties Oct 7, 2010
test2.c * Don't use this as a variable, so we can compile with a C++ compiler Feb 25, 2009
test2.expected * Add int64 support. Two new functions json_object_net_int64 and Oct 6, 2010
test2.test Update executable properties Oct 7, 2010
test4.c * Add int64 support. Two new functions json_object_net_int64 and Oct 6, 2010
test4.expected * Add int64 support. Two new functions json_object_net_int64 and Oct 6, 2010
test4.test Update executable properties Oct 7, 2010
test_cast.c Add a test_cast test case. This checks that the casting that is impli… May 3, 2011
test_cast.expected Add a test_cast test case. This checks that the casting that is impli… May 3, 2011
test_cast.test Add a test_cast test case. This checks that the casting that is impli… May 3, 2011
test_null.c update json_object_new_string_len, json_escape_str (internal). Writer… Jan 14, 2011
test_null.expected update json_object_new_string_len, json_escape_str (internal). Writer… Jan 14, 2011
test_null.test Set the svn:executable property so running the test_null test works p… May 3, 2011
test_parse_int64.c Simplify things by storing integer values only as int64_t's internall… Dec 7, 2010
test_parse_int64.expected Simplify things by storing integer values only as int64_t's internall… Dec 7, 2010

README

Building on Unix with gcc and autotools

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

If checking out from SVN (http://svn.metaparadigm.com/svn/json-c/trunk) or Git (https://github.com/jehiah/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)