1. Download the source code from github
git clone https://github.com/nlohmann/json.git
2. Compile and Installation
mkdir build
cd build
cmake ../
make -j2
sudo make install
git clone https://github.com/nlohmann/json.git
mkdir build
cd build
cmake ../
make -j2
sudo make install