You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
All three arguments call a different json file with the same content shown above. The expected behavior is that '2' is printed in the terminal three times.
After some trial and error I found that the last one saved gives me the error. The three setup files are called setup1.json, setup2.json and setup3.json. If I save setup1.json or setup2.json last then I get the error mentioned above. If I save setup3.json last, there is no error.
However, lets say I do save setup3.json last :
When I use setup3.json for all three arguments I get no error.
When I exclude setup3.json, replacing it with one of the other json files, I get no error.
I am using gcc version 5.3.0 which I believe is said to be supported, please correct me if I am mistaken.
JSON for Modern C++ version 3.2.0.
The text was updated successfully, but these errors were encountered:
@schoen2016 : your problem seems to be completely unrelated to the json library, there are a lot of other problems in your code:
fix file buffer of 1000000 bytes, without any check for overflows. Don't do that! Moreover, not all platforms support such big stack spaces (okay, the compiler should warn in these cases). Why don't you just call json::parse( std::istream_iterator<char>(f), std::istream_iterator<char>() ); ?
instead of complicated descriptions just make a table which program parameters work and which won't work:
@RokerHRO: Thank you for you help, your solution worked like a charm. I suspected my problem was with my implementation. I apologize if my post was trivial.
Hi,
Thank you for reading.
I am attempting to parse multiple json files and receiving an error :
[json.exception.parse_error.101] parse error at 15: syntax error - unexpected '}'; expected end of input.
Aborted
I use the following function to parse the json file
`
`
MAIN
`
`
JSON file
{ "num": 2 }
All three arguments call a different json file with the same content shown above. The expected behavior is that '2' is printed in the terminal three times.
After some trial and error I found that the last one saved gives me the error. The three setup files are called setup1.json, setup2.json and setup3.json. If I save setup1.json or setup2.json last then I get the error mentioned above. If I save setup3.json last, there is no error.
However, lets say I do save setup3.json last :
When I use setup3.json for all three arguments I get no error.
When I exclude setup3.json, replacing it with one of the other json files, I get no error.
I am using gcc version 5.3.0 which I believe is said to be supported, please correct me if I am mistaken.
JSON for Modern C++ version 3.2.0.
The text was updated successfully, but these errors were encountered: