Skip to content

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

@GoogleCodeExporter

Description

@GoogleCodeExporter
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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions