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

Related issues

Prati369 picture Prati369  路  4Comments

afowles picture afowles  路  3Comments

mlund picture mlund  路  4Comments

zkelo picture zkelo  路  3Comments

sqwunkly picture sqwunkly  路  3Comments