cmake ../json-c make make test # Optional: run the test suite sudo make install Use code with caution. Compiling Your First Program
For most users on modern Linux distributions, the fastest way to get libjson-c-dev is through the official package manager. Ubuntu and Debian libjson-c-dev download
You can install the library directly from the Debian Repositories or Ubuntu main repositories using the following commands: Update your local package index: sudo apt-get update Use code with caution. Install the development files: sudo apt-get install libjson-c-dev Use code with caution. Other Linux Distributions : apk add json-c-dev OpenWrt : Available as libjson-c in the base repository. macOS : Use MacPorts to install json-c . Downloading from Source libjson-c-dev download