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
I am using the following code load a JSON file. I want to handle the error cases if the JSON is wrong or corrupted. How do I handle or get to know if the JSON I am trying to load is with correct syntax or not. std::ifstream presetfile(presetName); json jsobject; jsobject << presetfile;
Use a simple JSON file and add any character at the beginning of the JSON like "test" in the first line. Then try to load the file using the above code we can see a crash.
I would like to see the information that the JSON that I am trying to load is corrupted/not in the expected format with a line where the issue is[optionally].
Is simply crashes.
I use Clang
released
No compile error
The text was updated successfully, but these errors were encountered:
Bug Report
I am using the following code load a JSON file. I want to handle the error cases if the JSON is wrong or corrupted. How do I handle or get to know if the JSON I am trying to load is with correct syntax or not.
std::ifstream presetfile(presetName); json jsobject; jsobject << presetfile;
Use a simple JSON file and add any character at the beginning of the JSON like "test" in the first line. Then try to load the file using the above code we can see a crash.
I would like to see the information that the JSON that I am trying to load is corrupted/not in the expected format with a line where the issue is[optionally].
Is simply crashes.
I use Clang
released
No compile error
The text was updated successfully, but these errors were encountered: