Skip to content
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

JSON grammar fix: json can be any value #372

Merged
merged 1 commit into from
May 13, 2016
Merged

Conversation

swenson
Copy link
Contributor

@swenson swenson commented May 13, 2016

The ECMA-404 standard says

A JSON text is a sequence of tokens formed from Unicode code points
that conforms to the JSON value grammar.

http://www.ecma-international.org/publications/files/ECMA-ST/ECMA-404.pdf

This corrects the JSON grammar so that it conforms to the spec, and will correctly parse any legal JSON value, instead of only objects and arrays.

The ECMA-404 standard says

> A JSON text is a sequence of tokens formed from Unicode code points
> that conforms to the JSON value grammar.

http://www.ecma-international.org/publications/files/ECMA-ST/ECMA-404.pdf

This corrects the JSON grammar so that it conforms to the spec, and will correctly parse any legal JSON value, instead of only objects and arrays.
@parrt parrt merged commit f903d10 into antlr:master May 13, 2016
@swenson
Copy link
Contributor Author

swenson commented May 13, 2016

Thanks for merging!

@KvanTTT KvanTTT added the json label Jan 18, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants