Skip to content
C Objective-C Shell
Find file
Pull request Compare This branch is 1 commit ahead, 269 commits behind json-c:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
tests
.gitignore
AUTHORS
COPYING
ChangeLog
Doxyfile
INSTALL
Makefile.am
Makefile.am.inc
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_iterator.c
json_object_iterator.h
json_object_private.h
json_tokener.c
json_tokener.h
json_util.c
json_util.h
linkhash.c
linkhash.h
printbuf.c
printbuf.h

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.