std.data.json formal review

Walter Bright via Digitalmars-d digitalmars-d at puremagic.com
Fri Aug 14 15:25:03 PDT 2015


On 8/14/2015 6:30 AM, Andrei Alexandrescu wrote:
> On 8/14/15 9:10 AM, Steven Schveighoffer wrote:
>> Though, I would much rather see a better comment tag than "comment":.
>> json isn't ideal for this.
>
> You're right. Good convo:
> http://stackoverflow.com/questions/21832701/does-json-syntax-allow-duplicate-keys-in-an-object
> -- Andrei
>

When going for portability, it is not a good idea to emit duplicate keys because 
many json parsers fail on it. For our own json readers, such as reading a 
dmd.json file with our own parser, it should be fine.


More information about the Digitalmars-d mailing list