Skip to content
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

Add JsonWriter methods setEscapeNonAsciiChars and setEscapeAllControlChars #1984

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

Marcono1234
Copy link
Collaborator

Resolves #388

Adds convenience methods to JsonWriter to give the user more control over which characters should be escaped. This can be useful when interacting with legacy systems which do not support UTF-8 text.

An existing workaround is to provide a custom java.io.Writer to JsonWriter which performs the escaping, see #388 (comment).
So feel free to close this pull request if you think these changes are not worth it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Enable Escape All Non Ascii chars
1 participant