jsonlint icon indicating copy to clipboard operation
jsonlint copied to clipboard

Tab not parseable in string.

Open coderextreme opened this issue 8 years ago • 1 comments

{
    "ABC": "	"
}

JSON.parse doesn't work either. Will use \t

coderextreme avatar May 31 '17 06:05 coderextreme

...Will use \t

You have to :-)

As specified within the JSON Data Interchange Format: a TAB (U+0009) within a JSON value is defined as one of the control chars (U+0000 to U+001F) and have to be escaped. In other words: all control chars must be made "visible" in your JSON valueable data ;-)

Note: TABs (as well as line feeds , carriage returns and spaces) are allowed before or after any token (six structural tokens and three literal name tokens) and must not be escaped. Hence this allow to structure the form of your JSON data.

Issue should be closed (imho).

khatastroffik avatar Jul 31 '17 08:07 khatastroffik