Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
masklinn
on Aug 2, 2013
|
parent
|
context
|
favorite
| on:
Comments in JSON
Both are only "correct" for specific implementation, this is not specified behavior (and duplicate keys is strongly recommended
against
by the key)
_ZeD_
on Aug 2, 2013
[–]
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.
masklinn
on Aug 2, 2013
|
parent
[–]
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.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: