News for hackers. Stuff that matters.
Re:Comments in JSON by masklinn on Friday August 02, 2013 @10:58AM (#6147281)
Both are only "correct" for specific implementation, this is not specified behavior (and duplicate keys is strongly recommended against by the key)
Re:Comments in JSON by _ZeD_ on Friday August 02, 2013 @11:03AM (#6147329)
absolutely. This is nothing more than a clever trick, but I would never rely on it.

Honestly, tough, I think all major JSON parser behave following the two assumption.

Re:Comments in JSON by masklinn on Friday August 02, 2013 @11:07AM (#6147358)
streaming parsers can't follow the assumption short of becoming useless. They're either going to send only the first instance or going to send two different events.