RFC 8259 §7 prohibits literal control characters (U+0000–U+001F) inside JSON strings — newlines, tabs, and carriage returns must be escaped as \n, \t, \r. This error appears when user input, LLM output, or Windows line endings are embedded in JSON without escaping. Paste below and JSONBlitz fixes it automatically.
Formatted output appears here...
Process JSON to generate code...
An unterminated string literal means the JSON parser found an opening quote character but reached the end of the input (or a newline) before finding the matching closing quote. This is one of the harder JSON errors to spot visually because the opening quote is present — only the closing one is missing, and the error message often points to a line far from where the actual problem is.
Accidentally deleting a closing quote while editing, a string value that contains a literal double quote that was not escaped with a backslash, a truncated API response that cuts off mid-string, and AI-generated JSON that forgets to close a long value are the most common sources of this error.
JSONBlitz uses the jsonrepair engine to trace the string structure, identify where the closing quote is missing, and insert it at the correct position. If the string contains an unescaped quote, that character is escaped instead. The Diff tab shows exactly what was changed.