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

Added optional support for trailing commas #584

Merged
merged 3 commits into from
Mar 21, 2016

Conversation

ludocode
Copy link
Contributor

This adds kParseTrailingCommasFlag to the reader to allow a trailing comma at the end of maps and arrays. This is part of issue #36, adding optional support for relaxed JSON syntax.

This adds kParseTrailingCommasFlag to allow a trailing comma at the
end of maps and arrays. This is part of issue Tencent#36, adding optional
support for relaxed JSON syntax.
@coveralls
Copy link

Coverage Status

Coverage decreased (-0.04%) to 98.769% when pulling 3e21bb4 on ludocode:trailing-commas into ca07fe2 on miloyip:master.

@coveralls
Copy link

Coverage Status

Coverage increased (+0.003%) to 98.811% when pulling 7c0e9d9 on ludocode:trailing-commas into ca07fe2 on miloyip:master.

This also fixes cases where the iterative parser should have produced
kParseErrorValueInvalid rather than kParseErrorUnspecifiedSyntaxError
when expecting a value (after a colon in an object, after a comma in an
array, and at the start of an array.)
@coveralls
Copy link

Coverage Status

Coverage decreased (-0.02%) to 98.792% when pulling 6821754 on ludocode:trailing-commas into ca07fe2 on miloyip:master.

miloyip added a commit that referenced this pull request Mar 21, 2016
Added optional support for trailing commas
@miloyip miloyip merged commit ec32200 into Tencent:master Mar 21, 2016
@miloyip
Copy link
Collaborator

miloyip commented Mar 21, 2016

Thank you

@miloyip miloyip mentioned this pull request Mar 21, 2016
13 tasks
@ludocode ludocode deleted the trailing-commas branch March 21, 2016 01:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants