cxflag203 / superobject

Automatically exported from code.google.com/p/superobject
0 stars 0 forks source link

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

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
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 microAl...@gmail.com on 27 Oct 2011 at 4:20

GoogleCodeExporter commented 9 years ago
forgot to tell, OS is 32bits.

Original comment by microAl...@gmail.com on 27 Oct 2011 at 4:22