std.json parsing real numbers.

Tyler Jameson Little beatgammit at gmail.com
Thu Aug 8 07:59:26 PDT 2013


On Thursday, 8 August 2013 at 08:04:49 UTC, khurshid wrote:
>
> I just check  std.json for parsing real numbers.
>
> import std.json;
> import std.stdio: writeln;
>
> int main()
> {
> 	auto json = parseJSON("1        .24E          +1");
> 	writeln(toJSON(&json));
> 	return 0;
> }
>
> and
> output:  12.4
>
>
> It's bug or normal ?

As mentioned in a different thread, it's a bug since it doesn't 
adhere to the JSON standard.


More information about the Digitalmars-d mailing list