Skip to content
Eric Hawicz edited this page Jun 27, 2026 · 30 revisions

JSON-C - A JSON implementation in C

Overview

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.

Documentation

For detailed information on using json-c, refer to the Doxygen generated API docs.

See also List of json-c- tutorials

Obtain sources

Fetch release tarballs from the downloads page (Amazon S3).

SHA-256 checksums:

These can be verified by running "openssl sha1 -sha256 json-c-0.19.tar.gz"

  • SHA2-256(json-c-0.19-nodoc.tar.gz)= 704927172443309a8efeb162060bb215548e1286e5568514007dd2cc35a0a164
  • SHA2-256(json-c-0.19.tar.gz)= 37ad0249902e301bd9052bf712e511fcc6acff4ecaad4b5900aad9ce564e26de

MD5 checksums:

These can be verified by running "openssl md5 json-c-0.19.tar.gz"

  • MD5(json-c-0.19-nodoc.tar.gz)= 09b70a19758b4ec8abf3f9e7880bf09b
  • MD5(json-c-0.19.tar.gz)= 5678f1373ba51e0041b574c0411c696b

Building

See README.md for full details. To setup JSON-C to build on your system please run:

tar xzf json-c-0.19.tar.gz
mkdir build
cd build
cmake -DCMAKE_INSTALL_PREFIX=/some/install/path ../json-c-0.19
make all test install

If you are on Win32, from a Visual Studio "x64 Native Tools Command Prompt" or similar:

mkdir build
cd build
cmake ../json-c-0.19
msbuild "json-c.vcxproj" /m /verbosity:normal /p:OutDir=lib\

git clone https://github.com/json-c/json-c.git

Send email to json-c at googlegroups dot com

You'll need to join the group first, see: https://groups.google.com/forum/?nomobile=true#!forum/json-c

License

This program is free software; you can redistribute it and/or modify it under the terms of the MIT License.

Checksums for older releases

See https://github.com/json-c/json-c/wiki/Old-Releases

Clone this wiki locally