I use https://github.com/nlohmann/json to handle in C++, I tried to build a simple code :
#include "lib/json-lib/json.hpp"
using json = nlohmann::json;
int main() {
json jsonConfiguration;
while(1){
std::cout << "Hello Wolrd!" <<std::endl;
}
return 0;
}
I take the file json.hpp
from https://github.com/nlohmann/json/tree/develop/single_include/nlohmann
i saved this one under lib/json-lib
. I build my main.cpp with g++ main.cpp
and when i launch it after build i got this :