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

(Ruby) Add option to parse with ALLOW_UNESCAPED_CONTROL_CHARS #91

Open
Mekk opened this issue Jun 9, 2023 · 0 comments
Open

(Ruby) Add option to parse with ALLOW_UNESCAPED_CONTROL_CHARS #91

Mekk opened this issue Jun 9, 2023 · 0 comments

Comments

@Mekk
Copy link

Mekk commented Jun 9, 2023

It would be great if JrJackson::Ruby allowed one to specify some option which would cause parsing with ALLOW_UNESCAPED_CONTROL_CHARS. So, in particular, it would be possible to parse json like

{
    "message": "This contains
newlines, what maybe isn't 100% formal,
but is eye friendly"
}

If I understand correctly (my java is … fairly limited) this is about paching somewhere around https://github.com/guyboertje/jrjackson/blob/master/src/main/java/com/jrjackson/JrJacksonRuby.java#L75 so it (conditionally) enables this feature using approach described in FasterXML/jackson-core#586

Rationale: I got here while digging whether logstash could parse json's with unescaped newlines ( logstash-plugins/logstash-filter-json#53 )

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

No branches or pull requests

1 participant