Skip to content
Eric Hawicz edited this page Sep 15, 2024 · 27 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.18.tar.gz"

  • SHA2-256(json-c-0.18-nodoc.tar.gz)= 602cdefc1d2aab8318fc0814b7ce7d59e72514d4276ca3eff92f35f86cf1c160
  • SHA2-256(json-c-0.18.tar.gz)= 876ab046479166b869afc6896d288183bbc0e5843f141200c677b3e8dfb11724

MD5 checksums:

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

  • MD5(json-c-0.18-nodoc.tar.gz)= e795aadd85376623777ff0fd259bebab
  • MD5(json-c-0.18.tar.gz)= e6593766de7d8aa6e3a7e67ebf1e522f

Building

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

tar xzf json-c-0.18.tar.gz
mkdir build
cd build
cmake -DCMAKE_INSTALL_PREFIX=/some/install/path ../json-c-0.18
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.18
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