-
Notifications
You must be signed in to change notification settings - Fork 4.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
rs2_load_json() error #3696
Comments
Seems like the problem is in the JSON file content. Please check you are passing valid JSON file |
Hello @dorodnic
|
Oh... Sorry. Load JSON is expecting file content, not file name. |
Oh, so how can I load all the parameters of a .json file? |
std::ifstream file("ShortRangePreset.json");
std::string str((std::istreambuf_iterator<char>(file)), std::istreambuf_iterator<char>());
advanced.load_json(str); |
Hello @dorodnic |
Issue Description
The core code is below:
The error is below:
I read the related issue. It seems like has been fixed, but I encounter the error again.
Can you provide some advice? Thanks a lot!
The text was updated successfully, but these errors were encountered: