Skip to content

tp: fix json parsing when string ends with \\#3369

Merged
LalitMaganti merged 1 commit intomainfrom
dev/lalitm/json
Oct 22, 2025
Merged

tp: fix json parsing when string ends with \\#3369
LalitMaganti merged 1 commit intomainfrom
dev/lalitm/json

Conversation

@LalitMaganti
Copy link
Member

This is perfectly valid to have in a string. We were being too zealous
and rejecting the string.

Also fix a critical bug in ScanString for HasEscapes when the escape
was not the last escape in the string.

Fixes: #3361

This is perfectly valid to have in a string. We were being too zealous
and rejecting the string.

Also fix a critical bug in ScanString for HasEscapes when the escape
was *not* the last escape in the string.

Fixes: #3361
@LalitMaganti LalitMaganti marked this pull request as ready for review October 22, 2025 11:57
@LalitMaganti LalitMaganti requested a review from a team as a code owner October 22, 2025 11:57
@LalitMaganti LalitMaganti merged commit 763f005 into main Oct 22, 2025
20 checks passed
@LalitMaganti LalitMaganti deleted the dev/lalitm/json branch October 22, 2025 13:56
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.

Json parsing fails if there is a string that ends with \\"

2 participants