Json: Reading a JSON file into a JSON object

Created on 2 Nov 2016  路  2Comments  路  Source: nlohmann/json

Hey, I am trying to read a json file into a json object, what is the best way to do this?

question

Most helpful comment

You can do it like this:

std::ifstream my_file("file.json");
json j;
j << my_file;

All 2 comments

You can do it like this:

std::ifstream my_file("file.json");
json j;
j << my_file;

@AbdallaGomaa7, can this issue be closed?

Was this page helpful?
0 / 5 - 0 ratings