I am trying to read in an .json file into an json object via the overloaded >> operator
I can also write it to another .json file with << which reproduces the same file, as expected.
however, when I try to find out about the size of the json-container, it yields 3, although my file is quite big
json input; i >> input; std::cout << input.size() << input << std::endl;
it gives the correct content but the size is obviously wrong
I am trying to read in an .json file into an json object via the overloaded >> operator
I can also write it to another .json file with << which reproduces the same file, as expected.
however, when I try to find out about the size of the json-container, it yields 3, although my file is quite big
json input; i >> input; std::cout << input.size() << input << std::endl;it gives the correct content but the size is obviously wrong