Introduction to JSON-C

The 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.

This package is known to build and work properly using an LFS-8.0 platform.

Package Information

User Notes: http://wiki.linuxfromscratch.org/blfs/wiki/json-c

Installation of JSON-C



This package does not support parallel build.

Install JSON-C by running the following commands:

sed -i s/-Werror// Makefile.in tests/Makefile.in &&
./configure --prefix=/usr --disable-static       &&
make -j1

To test the results, issue: make check.

Now, as the root user:

make install

Command Explanations

sed ...: This instruction removes a flag that prevents one file from compiling.

--disable-static: This switch prevents installation of static versions of the libraries.


Installed Programs: None
Installed Libraries: libjson-c.so and libjson.so
Installed Directories: /usr/include/json and /usr/include/json-c

Short Descriptions


contains the JSON-C API functions.


contains the JSON-C API functions.

Last updated on 2017-02-17 16:10:58 -0800