Skip to content

fix: JSON builder string encoding of control characters #69

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

Merged
merged 1 commit into from
Feb 5, 2025

Conversation

jbee
Copy link
Collaborator

@jbee jbee commented Feb 5, 2025

Fixes a bug in the JsonBuilder implementation for the encoding of control characters in strings.
This is same code that also is implementing Json.of("some string").

This is not an issue when parsing and working with JSON input. The issue only is present when building JSON using the fluent API when a addString (or Json.of(String)) is called with a string that has control characters that need escaping.

@jbee jbee self-assigned this Feb 5, 2025
@jbee jbee changed the title fix: JSON builder string encoding of special characters fix: JSON builder string encoding of control characters Feb 5, 2025
@jbee jbee enabled auto-merge (squash) February 5, 2025 08:19
@jbee jbee merged commit 8419cf8 into main Feb 5, 2025
1 check passed
@jbee jbee deleted the fix-json-builder-string-encoding branch February 5, 2025 10:43
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.

2 participants