Skip to content
Better HN
Top
Best
Ask
Show
New
Jobs
Search
⌘K
0 points
ris
3y ago
0 comments
Save
Share
You've never had to read arbitrary json?
0 comments
3 comments · 1 top-level
top
newest
oldest
insanitybit
3y ago
· 2 in thread
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