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

Use JSON5 library to parse non-standard JSON #2750

Merged
merged 2 commits into from
Nov 10, 2022
Merged

Use JSON5 library to parse non-standard JSON #2750

merged 2 commits into from
Nov 10, 2022

Conversation

mattseddon
Copy link
Member

@mattseddon mattseddon commented Nov 10, 2022

Fixes #2733 by using JSON5 to parse non-standard JSON values (e.g NaN and Infinity as per the issue).

JSON5: https://www.npmjs.com/package/json5

@mattseddon mattseddon added the bug Something isn't working label Nov 10, 2022
@mattseddon mattseddon self-assigned this Nov 10, 2022
@mattseddon mattseddon changed the title Use JSON5 to parse non-standard JSON Use JSON5 library to parse non-standard JSON Nov 10, 2022
@mattseddon mattseddon marked this pull request as ready for review November 10, 2022 04:47
@codeclimate
Copy link

codeclimate bot commented Nov 10, 2022

Code Climate has analyzed commit 7f9317b and detected 0 issues on this pull request.

The test coverage on the diff in this pull request is 100.0% (85% is the threshold).

This pull request will bring the total coverage in the repository to 96.7% (0.0% change).

View more on Code Climate.

@julieg18 julieg18 merged commit 05529f6 into main Nov 10, 2022
@julieg18 julieg18 deleted the use-json5 branch November 10, 2022 17:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

NaN, inf are not handled and breaking the extension
4 participants