JSON Types and Values/Escape quotes inside strings

Use backslash to include literal double quotes.

Section: String gotchas

Escape quotes inside strings

json
json
{
  "message": "She said \"hello\""
}
Explanation

Unescaped double quotes end the string and break parsing.

Learn the surrounding workflow

Compare similar commands or jump into common fixes when this command is part of a bigger troubleshooting path.

Related commands

Same sheet · prioritizing String gotchas
Use escape sequences for control characters
Encode newlines and tabs inside strings.
OpenIn sheetjsonsame section
Unicode escape sequence
Represent a character with a Unicode escape.
OpenIn sheetjsonsame section
String value
A sequence of Unicode characters inside double quotes.
OpenIn sheetjson2 tag match
Avoid leading zeros
Leading zeros are invalid except for zero itself.
OpenIn sheetjson1 tag match
Number value
JSON supports integers and decimals.
OpenIn sheetjson1 tag match
Scientific notation
JSON supports exponent notation.
OpenIn sheetjson1 tag match