Skip to content

Conversation

Mesoptier
Copy link
Contributor

Extend tests to check that the produced syntax is valid (i.e. does not throw a SyntaxError when evaluated) and that escaped double quotes are supported. This test would fail on the current release.

Then I fixed the test by nesting two JSON.stringify calls, ensuring correctly escaped JSON.

Fixes #32

@justjavac justjavac merged commit cefd898 into justjavac:master Feb 19, 2021
@justjavac justjavac mentioned this pull request Feb 19, 2021
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.

Produces invalid JSON when keys/values contain escaped double quotes
2 participants