Fastest JSON parser in the world is a D project

Sönke Ludwig via Digitalmars-d-announce digitalmars-d-announce at puremagic.com
Thu Oct 15 09:17:07 PDT 2015


Am 15.10.2015 um 13:06 schrieb Rory McGuire via Digitalmars-d-announce:
> In browser JSON.serialize is the usual way to serialize JSON values.
> The problem is that on D side if one does deserialization of an object
> or struct. If the types inside the JSON don't match exactly then vibe
> freaks out.

For float and double fields, the serialization code should actually 
accept both, floating point and integer numbers:

https://github.com/rejectedsoftware/vibe.d/blob/2fffd94d8516cd6f81c75d45a54c655626d36c6b/source/vibe/data/json.d#L1603
https://github.com/rejectedsoftware/vibe.d/blob/2fffd94d8516cd6f81c75d45a54c655626d36c6b/source/vibe/data/json.d#L1804

Do you have a test case for your error?



More information about the Digitalmars-d-announce mailing list