Menu

#11 "Format" introducing newline and breaks the JSON

JSON Parsing Bugs
open
nobody
None
1
2014-02-25
2014-02-25
No

Steps for reproduction:
This is a sanitized part of a JSON response, which hopefully helps to reproduce the problem.
"Show JSON Viewer" works fine as long as the testdata is one line.

The "Format JSON" action, introduces a new line in my case, which breaks parsing on a second "Show JSON Viewer" call.

Oneliner testdoc:

[{"value": "{\"username\":\"\",\"userId\":-1}"}]

format, which leads to an parse error on the line-break, the value in this example is one continuous string:

[{
    "value": "{\"username\":\"\",
    \"userId\":-1}"
}]

P.S.: I tried to format the JSON parts, but it seems that I'm not very successful with that :(

Discussion


Log in to post a comment.