Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Official code repository for json-c. See the wiki for release tarballs for download.
C Shell HTML Other

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
.gitignore
AUTHORS
COPYING
ChangeLog
Doxyfile
INSTALL
Makefile.am
NEWS
README
README-WIN32.html
README.html
RELEASE_CHECKLIST.txt
arraylist.c
arraylist.h
autogen.sh
bits.h
config.h.in
config.h.win32
configure.in
debug.c
debug.h
json-c.vcproj
json.h
json.pc.in
json_config.h.in
json_inttypes.h
json_object.c
json_object.h
json_object_private.h
json_tokener.c
json_tokener.h
json_util.c
json_util.h
linkhash.c
linkhash.h
parse_int64.test
printbuf.c
printbuf.h
test-defs.sh
test1.c
test1.expected
test1.test
test2.c
test2.expected
test2.test
test4.c
test4.expected
test4.test
test_cast.c
test_cast.expected
test_cast.test
test_null.c
test_null.expected
test_null.test
test_parse.c
test_parse.expected
test_parse.test
test_parse_int64.c
test_parse_int64.expected

README

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)
Something went wrong with that request. Please try again.