Closed Rush closed 3 years ago
Yes, also top level numbers and strings are not supported I think
Not sure if numbers and strings are universally considered valid JSON but top-level arrays definitely are as per this SO answer https://stackoverflow.com/a/3833312 which links to respective RFCs.
json.org also and every JS implementation
Support plan
Context
What are you trying to achieve or the steps to reproduce?
What was the result you got?
JSON top-level array was interpreted as an object with
'0'
as key.What result did you expect?
Expected to receive an array. Arrays shouldn't be interpreted as objeccts.