Skip to content

Fix escaped quotes and escaped Unicode values - #13

Merged
Nolij merged 1 commit into
masterfrom
escaped-strings-fix
Jul 22, 2026
Merged

Fix escaped quotes and escaped Unicode values#13
Nolij merged 1 commit into
masterfrom
escaped-strings-fix

Conversation

@embeddedt

Copy link
Copy Markdown
Collaborator

The ZSON parser previously emitted incorrect string data for two escape patterns:

Input Should decode to Actually decodes to
"a\"b" a"b a""b
"a\u0041b" aAb fails with NumberFormatException

This PR fixes both and adds tests for them.

AI disclosure: the two failure cases were identified by Claude Sonnet 5 (while using ZSON in a downstream project, not by code analysis). All other aspects of the contribution, including the code and this description, are handwritten.

@Nolij
Nolij merged commit dc232b5 into master Jul 22, 2026
2 of 3 checks passed
@github-actions github-actions Bot locked and limited conversation to collaborators Jul 22, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants