-
-
Notifications
You must be signed in to change notification settings - Fork 1k
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
JSON breaks on INFTY #1464
Comments
Oh, writing works btw. But reading the written object fails. The file contains "inf" strings |
https://gist.github.com/karlnapf/6343428 contains code to reproduce and output of the file. |
come on there's like milion of 'standard' JSON serialization libraries out there.. why don't we just use that. see, some examples: |
I agree |
According to JSON spec, there is no Infinity or NaN values: http://json.org/ |
@karlnapf could you please email me a small file with serialized NaNs or inf in there for testing? I got the authors OK from the json-c project (also on github) that they will merge patches. And it seems easy to fix. |
if you run the code in test/unit/io/SerializationJSON_unittest.cc.jinja2 with the disabled classes plugged into the placeholders: #ifdef HAVE_JSON you will get such a file |
Would you agree we can't resolve this issue under current milestone Shogun 3.0? It seems it would have some time to introduce fix and update dependencies. |
true, moving to 3.1 |
Whenever a parameter is inf, -inf, json cannot open the file.
In particular, io/SerializableJsonFile.cpp line 104: sais that it cannot open the file, which means that json_object_from_file returns NULL.
This is the last error in serialization unit test branch
Assigning to @sonney2k since he wrote the thing
The text was updated successfully, but these errors were encountered: