Skip to content

replace JSON parse with JSON5 parse#30

Open
M-a-c-Carter wants to merge 2 commits intosml-mirror:masterfrom
M-a-c-Carter:master
Open

replace JSON parse with JSON5 parse#30
M-a-c-Carter wants to merge 2 commits intosml-mirror:masterfrom
M-a-c-Carter:master

Conversation

@M-a-c-Carter
Copy link

So i was trying to use this to parse a typescript file. Typescript is a bit more lenient with object definitions depending on your setup, in my case we use single quotes, which JSON.parse doesn't like, but is totally fine in our project. Turns out JSON5 can parse a wider variety of valid json.

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.

1 participant