-
-
Notifications
You must be signed in to change notification settings - Fork 681
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Top-level JSON arrays are interpreted as objects #760
Comments
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 |
GrosSacASac
added a commit
that referenced
this issue
Oct 30, 2021
* chore: start version 3 * feat: Use ES modules (#727) * feat: Url search params and remove multiple (#730) * docs: Fixed the missing "=" in options.filter (#732) * docs: fix example * docs: specify what part actually is * docs: fix types * docs: add warning for progress event * docs: finish removing multiples in examples * docs: add example for express as middleware * docs: example handle common internet errors * feat: add corepack support * fix: corepack support * fix: fix examples comment * fix: fix example comment * feat: add firstValues, readBooleans helpers (#757) * feat: add firstValues, readBooleans helpers * feat: export types * docs: document helpers * docs: fix example * fix: #760 (#761) * fix: fix error when there is an error * tests: fix some of the tests (#763) * chore: up supertest jest and nyc * tests: convert to import , fix some tests * test: make malformed boundary as per comment ? * tests: refactor * style: fix some prettier issues (#764) * chore: publish as 3.x tag * docs: add changelog link * docs: typo Co-authored-by: Hrushikesh Das <dashrushikesh1121@gmail.com> Co-authored-by: Jimmy Wärting <jimmy@warting.se>
Merged
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
The text was updated successfully, but these errors were encountered: