Skip to content

Official code repository for json-c. See the wiki for release tarballs for download.

License

Notifications You must be signed in to change notification settings

randy-armstrong/json-c

This branch is 2 commits ahead of, 898 commits behind json-c/json-c:master.

Folders and files

NameName
Last commit message
Last commit date

Latest commit

0518a91 · Aug 24, 2016
May 23, 2016
Aug 21, 2016
Aug 12, 2016
Aug 8, 2016
Aug 8, 2016
Jun 14, 2011
Apr 26, 2012
Aug 24, 2016
Jul 30, 2012
Jun 7, 2016
Jun 8, 2016
Aug 8, 2016
Aug 8, 2016
Aug 8, 2016
Sep 8, 2013
Aug 8, 2016
Aug 8, 2016
Jun 27, 2016
Aug 9, 2016
Nov 5, 2015
May 23, 2016
May 23, 2016
Oct 23, 2015
May 5, 2014
May 23, 2016
Aug 3, 2016
Aug 26, 2014
Mar 23, 2014
Jul 29, 2012
Aug 8, 2016
Aug 8, 2016
Mar 4, 2015
Mar 4, 2015
May 5, 2014
Dec 23, 2012
Apr 11, 2014
Feb 16, 2012
Mar 4, 2015
Mar 4, 2015
Aug 24, 2016
Aug 21, 2016
Jun 11, 2016
Apr 30, 2013
Sep 23, 2015
Aug 11, 2016
Aug 26, 2014
Jun 26, 2016
Jun 26, 2016
Aug 26, 2014
Jun 25, 2016
Jun 25, 2016
Mar 4, 2015
Jul 16, 2016
Apr 3, 2012
Mar 4, 2015
Apr 9, 2014

Repository files navigation

json-c {#mainpage}

JSON-C - A JSON implementation in C

JSON-C implements a reference counting object model that allows you to easily construct JSON objects in C, output them as JSON formatted strings and parse JSON formatted strings back into the C representation of JSON objects. It aims to conform to RFC 7159.

Building on Unix with git, gcc and autotools

Home page for json-c: https://github.com/json-c/json-c/wiki

Prerequisites:

  • gcc, clang, or another C compiler
  • libtool

If you're not using a release tarball, you'll also need:

  • autoconf (autoreconf)
  • automake

Make sure you have a complete libtool install, including libtoolize.

json-c GitHub repo: https://github.com/json-c/json-c

$ git clone https://github.com/json-c/json-c.git
$ cd json-c
$ sh autogen.sh

followed by

$ ./configure
$ make
$ make install

To build and run the test programs:

$ make check

Linking to libjson-c

If your system has pkgconfig, then you can just add this to your makefile:

CFLAGS += $(shell pkg-config --cflags json-c)
LDFLAGS += $(shell pkg-config --libs json-c)

Without pkgconfig, you would do something like this:

JSON_C_DIR=/path/to/json_c/install
CFLAGS += -I$(JSON_C_DIR)/include/json-c
LDFLAGS+= -L$(JSON_C_DIR)/lib -ljson-c

About

Official code repository for json-c. See the wiki for release tarballs for download.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • C 87.0%
  • M4 7.1%
  • Shell 2.7%
  • Makefile 1.7%
  • Other 1.5%