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

Support CharSequence Sanitisation #25

Open
dansiviter opened this issue Oct 19, 2020 · 0 comments
Open

Support CharSequence Sanitisation #25

dansiviter opened this issue Oct 19, 2020 · 0 comments

Comments

@dansiviter
Copy link

So other JSON parsing libraries can be used support sanitisation of both whole JSON and individual values via java.lang.CharSequence.

Examples:

javax.json.JsonString node = ...
CharSequence sanitised = JsonSanitizer.sanitiseValue(node.getChars());

For situations such as a StringBuilder or StringBuffer it could also have the option to not create a new instance and edit in place to avoid GC churn related to String creation.

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

No branches or pull requests

2 participants