Skip to content

(Ruby) Add option to parse with ALLOW_UNESCAPED_CONTROL_CHARS #91

Description

@Mekk

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 )

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions