-
-
Notifications
You must be signed in to change notification settings - Fork 810
Hex capitalization for JsonWriter should be configurable #717
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
Comments
This sounds like a good idea, an addition to |
The implementation seems straightforward but I am not familiar enough with the repo to understand how to drill down this configuration, or write the tests. If you could give me an intro I could spend some time on it. |
Might be good idea to look into how other configuration settings are accessed. Or where helper method(s) for encoding are called by generators. |
On API choice: could either have a simple Tagging as "good first issue" as this seems reasonable straight-forward (not necessarily super easy of course, just less complicated than many other open issues). |
I'm okay with the simpler option. Sadly I'm not at that employer anymore, so tagging @isaacasensio |
👋 I can take this one. Thanks for the heads up @pakoito :) |
Very cool -- looking forward to a possible PR against 2.14 branch! I can also help with details; f.ex in 2.x there's some non-ideal complexity since "same" feature needs to be added both in |
Hey @cowtowncoder I tried to pick this up since it seems it had not been fixed in the meantime. |
@Richie94 much appreciated! |
As per PR this can now be configured using
(or its deprecated counterpart, and the default setting is |
Implemented via #819; will be in 2.14.0-rc2 (and final 2.14.0) |
Thank you all! |
We're seeing inconsistencies between JS's and Jackson's representation of non-printable characters embedded in JSON strings. Where JS sends
\u001b
, once it goes through Jackson the field holds the string\u001B
, causing all kind of hashing issues.In
jackson-core/src/main/java/com/fasterxml/jackson/core/io/CharTypes.java
Line 7 in efe51e8
A-F
, whereas other representations such as JS'sJSON.stringify
indicate you should use lowercasea-f
instead.These are used in the standard JsonWriter via
jackson-core/src/main/java/com/fasterxml/jackson/core/JsonStreamContext.java
Line 331 in 94a0e1c
We would like to see a configuration parameter or recommended approach to overcome this issue.
Seen in 2.13, made from before 2.0
The text was updated successfully, but these errors were encountered: