JSON errors
JSON Errors, by Language and Tool
A JSON error means the text broke one of the eight syntax rules of RFC 8259 — most often a trailing comma, a single quote, a missing bracket or a truncated stream. Find your parser's exact message below, or paste the JSON into the repair tool and read the fix it applied.
Errors in any language
The same eight syntax mistakes crash every parser; the message differs, the fix does not.
- JSON Parse Error: What It Means and How to Fix It FastJSON parse errors crash code in every language. This guide covers every common message — SyntaxError, JSONDecodeError, unexpected token — with exact fixes for JavaScript, Python, and TypeScript.11 min read
- Invalid JSON Meaning: What It Is and How to Fix ItInvalid JSON means text breaks JSON syntax rules. Learn the common causes, how to find the error and how to fix it automatically, free and with no signup.8 min read
- JSON Syntax Errors Explained: Causes and How to Fix EachA complete reference for every JSON syntax error, with examples of broken JSON, the exact parser message, and the repair strategy.6 min read
- Fix JSON SyntaxError: Unexpected TokenSyntaxError: Unexpected token is the most common JSON parse error. Learn the 8 causes, how to diagnose which one you have, and the exact fix for each.14 min read
- Fix 'Unexpected End of JSON Input' — How to Repair Truncated JSONGetting 'Unexpected end of JSON input'? Learn every cause — truncated responses, missing brackets, empty strings, LLM cutoffs — and fix it instantly in JavaScript, Python, and more.11 min read
- JSON Trailing Comma Error: Why It Happens and How to Fix ItTrailing commas are the most common JSON syntax error from LLM output and JavaScript developers. Learn why JSON doesn't allow them, how to find them, and how to fix them automatically.11 min read
- Fix JSON Single Quote Errors Instantly — Free Online Tool [2026]JSON single quote errors crash parsers in every language. Fix them instantly with our free online tool, or learn how to repair them in Python and JavaScript — complete guide for 2026.10 min read
- JSON Missing Bracket Error: How to Find and Fix ItMissing brackets and braces are the second most common JSON syntax error from LLM output. Learn how to find the exact location, understand why it happens in AI pipelines, and fix it automatically.11 min read
- JSON Missing Bracket Error: How to Find and Fix It (2026)Getting a JSON missing bracket error or 'Unexpected end of JSON input'? Learn exactly why it happens, how to find the missing bracket, and how to auto-repair it online.11 min read
- JSON Unterminated String Error: Causes and Fixes (2026)Getting a JSON 'Unterminated string starting at' error? Learn why it happens (LLM truncation, Windows paths, backslashes) and how to auto-repair it in JavaScript, Python, or online.10 min read
- JSON Invalid Escape Sequence Error: Fix It Fast (2026)Getting a 'JSON invalid escape sequence' error? This guide covers every cause — Windows paths, regex, LLM output, LaTeX — and shows exact fixes in JavaScript and Python.11 min read
- 10 Most Common JSON Mistakes Developers Make (and How to Fix Each One)Trailing commas, unquoted keys, Python True/None — 10 JSON mistakes that break your code. Exact before/after fixes for each. Paste broken JSON below to repair it free.10 min read
- Strip Markdown Code Fences from JSON: Complete GuideAI models wrap JSON in markdown code fences that break JSON.parse. Learn to strip them with regex in JavaScript and Python, and automate it in n8n.12 min read
- Why LLMs Output True Instead of true (and How to Fix It)LLMs trained on Python output True, False, and None instead of valid JSON booleans. Learn why it happens, how to fix it in Python and JavaScript, and how to prevent it with structured output in 2026.8 min read
JavaScript and TypeScript
JSON.parse throws a SyntaxError with the token and position; JSON.stringify silently drops undefined.
- Invalid JSON: JavaScript JSON.parse() Fails on NaN and InfinityJSON.parse() in JavaScript throws a SyntaxError on NaN, Infinity, -Infinity and undefined. See why the standard rejects them and how to repair the text.5 min read
- JavaScript JSON.parse() Errors: What They Mean and How to Fix ThemSyntaxError: Unexpected token? JSON.parse() failing? This guide explains every JavaScript JSON parse error with examples and fixes.9 min read
- TypeScript JSON.parse: Type-Safe Parsing and Error HandlingJSON.parse in TypeScript returns 'any' by default. Learn how to add proper types, handle SyntaxError, and validate structure with Zod or type guards.8 min read
- JSON.stringify undefined: Why Values Disappear and How to Handle ItJSON.stringify silently drops undefined values. Learn what gets removed, why it happens, and how to handle it safely in JavaScript and TypeScript.9 min read
- How to Validate JSON API Responses in JavaScript, Python, and Node.jsStop your app crashing on bad API responses. Validate JSON with try/catch, JSON Schema, and Zod — copy-paste code for JavaScript, Python, TypeScript, and Node.js.12 min read
Python
json.loads raises JSONDecodeError with a line and column; Pydantic reports the field that failed.
- Invalid control character in JSON: How to Fix It in PythonPython raises 'Invalid control character at' when a JSON string holds a raw newline, tab or other control character. Here is what causes it and how to…5 min read
- Single quotes are not valid JSON: Fixing json.loads() in PythonPython json.loads() rejects single quotes because JSON requires double quotes. Learn the causes, fixes, and a safe parsing pattern.6 min read
- Fix Python JSON Errors: json.loads() Decode Errors and How to Repair ThemPython json.loads() raising JSONDecodeError? Learn every cause, what the error messages mean, and how to fix malformed JSON from APIs and AI tools.10 min read
- Pydantic '1 validation error' in LLM Output: Causes and Fixes (2026)Getting 'pydantic_core._pydantic_core.ValidationError: 1 validation error for ...' from your LLM pipeline? This guide covers the 5 most common causes and fast fixes — including repair-before-validate and the Instructor library.10 min read
Go, Rust and Java
Typed languages fail at the decoder: encoding/json, serde_json and the JDK each report the field and the reason.
- Go 1.27 encoding/json/v2 Migration Guide: What Actually Breaks (and How to Fix It)Go 1.27 ships json/v2 as the default JSON engine. Learn exactly what breaks — nil slice behavior, case-sensitive matching, UTF-8 strictness, duplicate keys — and get migration code examples for every change.8 min read
- Rust serde_json Guide 2026: Parsing, Serialization, and Error HandlingA practical guide to using serde_json in Rust — typed deserialization, the Value enum, error handling patterns, key attributes like flatten and rename, and how to recover from malformed JSON at the API boundary.7 min read
- JEP 540: Java Finally Gets a Native JSON API (What You Need to Know)JEP 540 brings a Simple JSON API to the JDK as an incubator module. Learn what it does, what it doesn't do, code examples, and how it compares to Jackson and Gson.8 min read
- FastJson CVE-2026-16723: Audit Your Java JSON Inputs Before They're ExploitedFastJson 1.x (up to 1.2.83) has an unpatched RCE zero-day being actively exploited in Spring Boot applications. Here's exactly what's happening, how to detect exposure, and what to do right now.10 min read
curl, jq, Postman and REST APIs
On the command line the error usually sits in the response, not the filter: inspect the raw body first.
- curl Parse JSON: Extract Fields from API Responses on the Command LineLearn how to parse JSON from curl API responses using jq, Python, and Node.js. Extract fields, handle errors, and process nested data from the command line.7 min read
- jq Online Playground: Filter and Transform JSON in Your Browser (2026)Test jq filters in your browser instantly — no installation needed. Learn the most useful jq commands for JSON processing, API output filtering, and LLM response transformation with live examples.7 min read
- jq Tutorial 2026: JSON Processing for AI Agents (+ Fix jq Input Errors)Master jq 1.8.2 for AI agent pipelines. Learn essential filters, the jq MCP server, Jaiqu transforms, and how to fix malformed JSON before jq errors out.11 min read
- Postman JSON Error: Fix Invalid Body and Parse Errors in API TestingPostman showing invalid JSON, parse errors, or Content-Type mismatches? This guide covers every Postman JSON error and how to fix it step by step.8 min read
- How to Debug REST API JSON Responses: A Developer's Complete GuideAPI returning broken JSON? Find the exact error fast: inspect raw responses with curl, DevTools, and Python — then repair it in one click. Free tool included.10 min read
n8n, Zapier and Make
Automation platforms fail on the AI node's output: fences, trailing commas and truncation before the JSON step.
- Fixing n8n JSON Parse Errors: A Practical Guide for Workflow Buildersn8n AI node returning malformed JSON? Fix the 6 patterns that break automations — truncated output, trailing commas, Python literals — with exact node fixes you can paste in now.14 min read
- Zapier JSON Formatter: Fix Parse Errors and Handle Malformed JSON in Your ZapsZapier JSON parsing failing? Learn how to format, repair, and validate JSON in Zapier workflows with Code steps and the Formatter app.9 min read
- Fix Make.com (Integromat) JSON Errors in Your ScenariosMake.com failing to parse JSON? Learn how to handle malformed JSON, use the JSON module correctly, and fix common automation errors.10 min read
- Fix LLM JSON Output Errors in Zapier, Make.com, and Bubble — A No-Code Builder's GuideChatGPT and Claude JSON outputs silently breaking your Zapier or Make.com workflow? Learn the 5 failure patterns and how to repair them without writing code.11 min read
Databases
SQLite validates JSON on write with json_valid and repairs it with json_set before it reaches a query.
Still dealing with broken JSON?
Paste it in and get it fixed in under 1 second — free, no signup, no install. Works with ChatGPT, Claude, n8n, and any AI output.
Fix My JSON Free →Every guide here is written from reproduced cases by the maintainer of the repair engine — about the site.