Skip to content
Better HN
Top
New
Best
Ask
Show
Jobs
Search
⌘K
undefined | Better HN
0 points
ris
3y ago
0 comments
Share
You've never had to read arbitrary json?
0 comments
default
newest
oldest
insanitybit
3y ago
I just did a quick check (apparently DuckDuckGo has a built in JSON validation function lol love it) and `[1, "foo"]` does pass their JSON validation.
Not surprised but I did want to confirm.
okayexplainl4
3y ago
Am I missing something, why wouldn't a non-homogeneous array literal pass?
insanitybit
3y ago
Because mixing types in an array is stupid enough that I thought it might just not be valid.
1 more reply
j
/
k
navigate · click thread line to collapse