json icon indicating copy to clipboard operation
json copied to clipboard

`json_parse` used for providing more details on parse failure is okay with newlines in strings

Open trentm opened this issue 11 years ago • 0 comments

$ cat newBuffer
{
    "foo": {
      "bar": "xx{H}F:^,
",
      "blah": "bling"
    }
}


$ json -f newBuffer
json: error: input is not JSON: SyntaxError: Unexpected token

{
    "foo": {
      "bar": "xx{H}F:^,
",
      "blah": "bling"
    }
}

Why is json_parse okay with that?

trentm avatar Jul 08 '13 18:07 trentm