Skip to content
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

Double serialized as NaN, but without quotes, produce invalid json #21

Open
GoogleCodeExporter opened this issue Jun 22, 2015 · 1 comment

Comments

@GoogleCodeExporter
Copy link

What steps will reproduce the problem?
1. This is kind of random, so just encode a lot of Double randomized value 
(very high or very low I guess)
2. convert using superObj := superRttiContext.AsJson<Type>(Data);
3. save using superObj.SaveTo(filePath);

What is the expected output?
The actual double value or "NaN" with quotes

What do you see instead?
NaN without quote like {"X": NaN}


What version of the product are you using? On what operating system?
Lastest version from repo (at this date)
Windows XP, Delphi 2010


Thanks.

Original issue reported on code.google.com by [email protected] on 27 Oct 2011 at 4:20

@GoogleCodeExporter
Copy link
Author

forgot to tell, OS is 32bits.

Original comment by [email protected] on 27 Oct 2011 at 4:22

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant