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 11.3 platform.
Download (HTTP): https://s3.amazonaws.com/json-c_releases/releases/json-c-0.16.tar.gz
Download MD5 sum: 8110782cb2a996da5517f1f27a4bed8e
Download size: 344 KB
Estimated disk space required: 7.7 MB
Estimated build time: 0.2 SBU (with tests)
User Notes: https://wiki.linuxfromscratch.org/blfs/wiki/json-c
Install JSON-C by running the following commands:
mkdir build && cd build && cmake -DCMAKE_INSTALL_PREFIX=/usr \ -DCMAKE_BUILD_TYPE=Release \ -DBUILD_STATIC_LIBS=OFF \ .. && make
To test the results, issue: make test.
Now, as the root
user:
make install
-DCMAKE_BUILD_TYPE=Release
: This switch is
used to apply a higher level of compiler optimizations.