I\'m trying to read in a JSON file. So far I have focused on using the jsoncpp library. However, the documentation is quite hard to understand for me. Could anyone
jsoncpp
Here is another easier possibility to read in a json file:
#include "json/json.h" std::ifstream file_input("input.json"); Json::Reader reader; Json::Value root; reader.parse(file_input, root); cout << root;
You can then get the values like this:
cout << root["key"]