jsonlint doesn't seem to catch illegal embedded line breaks in JSON strings:
{
"foo": "bar
bar bar bar bar"
}
Looks like the error flag is never set and .line always references the last line of the file. The JSONLint validator does return the error (well, the line number anyway), as does zaach/jsonlint.
jsonlint doesn't seem to catch illegal embedded line breaks in JSON strings:
Looks like the
error
flag is never set and.line
always references the last line of the file. The JSONLint validator does return the error (well, the line number anyway), as does zaach/jsonlint.