JSON5 support for std.json

Ola Fosheim Grøstad via Digitalmars-d digitalmars-d at puremagic.com
Mon Nov 30 03:15:39 PST 2015


On Monday, 30 November 2015 at 09:43:58 UTC, Idan Arye wrote:
> http://dpaste.dzfl.pl/42bbe53e00f9. "NaN" is emitted the same 
> as JSON5, but for infinity we emit "Infinite" while JSON5 
> specifies "Infinity".

That sounds like a bug. ECMAScript uses the mapping 
Number("Infinity"). Number("Infinite") would yield NaN...



More information about the Digitalmars-d mailing list