Skip to content

incorrect rendering of multiline json strings #42

@timbod7

Description

@timbod7

Nice library - thank you!

For a json value like this:

{ "message": "line 1\nline 2\nline 3"}

The library renders as:

image

I'm unsure if this is intentional, but a problem with this rendering is that the rendered output cannot be copied and pasted to an application expecting valid json.

I believe that to be valid json, newlines must be escaped.

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