json
json copied to clipboard
`json_parse` used for providing more details on parse failure is okay with newlines in strings
$ 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?