36 chars · 3 lines
Two-way sync · Edit either side and the other updates automatically.
"message": "She said "hello"."36 chars · 3 lines
Two-way sync · Edit either side and the other updates automatically.
"message": "She said "hello"."JSON quotation error
When a raw double quote appears inside a quoted JSON value, the parser treats it as the end of that value. The following text then appears in a place where the object grammar expects a comma or closing delimiter. This tool is free to use. No account or payment is required.
Last updated
The opening and closing delimiters remain plain double quotes. Extra escaping on the final delimiter can create an unterminated string, so inspect the exact intended text boundary.
If the source value already exists as a normal application string, pass it to a JSON serializer. Manual escaping is easiest to get wrong when data contains both quotes and backslashes.
The inner hello quotation marks must be escaped while the outer JSON string delimiters remain plain.
{
"message": "She said "hello"."
}{
"message": "She said \"hello\"."
}Common questions
Escape each embedded double quote as \" in the raw JSON text while leaving the string's opening and closing quotes unescaped.
No. Standard JSON strings and property names use double quotes. Single quotes are JavaScript syntax, not JSON syntax.
The parser may believe the string ended successfully, then fail only when the next word or quote cannot legally follow a completed value.
Debugging a specific JSON issue? Browse JSON troubleshooting.