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.

Reply via email to