I think that, this code must be throw, but it's success run. import std.json; import std.stdio : writeln; void main() { ////////////////////////// leading spaces doesn't skip between 1 and E. auto json = parseJSON(`{ "throwable_one" : 1 .E +1 }`); writeln( toJSON(&json) ); }
This violates RFC 4627 (http://www.ietf.org/rfc/rfc4627.txt), so it's definitely a bug in std.json.
This now throws an exception.