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

Addition of tabbing character for wrapping invalidates the JSON #10

Open
ssontakke opened this issue Mar 15, 2019 · 0 comments
Open

Addition of tabbing character for wrapping invalidates the JSON #10

ssontakke opened this issue Mar 15, 2019 · 0 comments

Comments

@ssontakke
Copy link

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

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