Skip to content

Addition of tabbing character for wrapping invalidates the JSON #10

@ssontakke

Description

@ssontakke

When I click on format, it adds some tabbing characters for wrapping are added to put the text on next line.

This makes the json invalid.

Input:

{
  "my key":"my long text, this text would be wrapped."
}

Valid: Yes

After clicking on format:

{
"my key":"my long text,
this text would be wrapped."
}
Valid: No
Error: Parse error on line 2:
{ "my key": "my long text, this
------------^
Expecting 'STRING', 'NUMBER', 'NULL', 'TRUE', 'FALSE', '{', '[', got 'undefined'

Check this screencast: https://www.screencast.com/t/WG2hpZQqZQ

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