Skip to content
Better HN
Top
New
Best
Ask
Show
Jobs
Search
⌘K
undefined | Better HN
0 points
masklinn
12y ago
0 comments
Share
Both are only "correct" for specific implementation, this is not specified behavior (and duplicate keys is strongly recommended
against
by the key)
0 comments
default
newest
oldest
_ZeD_
12y ago
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
OP
12y ago
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.
j
/
k
navigate · click thread line to collapse