<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[CalcBean]]></title><description><![CDATA[CalcBean]]></description><link>https://calcbean.hashnode.dev</link><generator>RSS for Node</generator><lastBuildDate>Wed, 18 Nov 2026 14:59:43 GMT</lastBuildDate><atom:link href="https://calcbean.hashnode.dev/rss.xml" rel="self" type="application/rss+xml"/><language><![CDATA[en]]></language><ttl>60</ttl><item><title><![CDATA[How to Format JSON and Fix the 5 Errors That Break It]]></title><description><![CDATA[How to format JSON and fix 5 errors — trailing commas, single quotes, unquoted keys, comments, mismatched brackets — with a free JSON formatter.]]></description><link>https://calcbean.hashnode.dev/how-to-format-json-and-fix-the-5-errors-that-break-it</link><guid isPermaLink="true">https://calcbean.hashnode.dev/how-to-format-json-and-fix-the-5-errors-that-break-it</guid><category><![CDATA[json]]></category><category><![CDATA[JSON formatter]]></category><category><![CDATA[Web Development]]></category><category><![CDATA[JavaScript]]></category><category><![CDATA[Developer Tools]]></category><dc:creator><![CDATA[Calc Bean]]></dc:creator><pubDate>Tue, 10 Nov 2026 10:49:16 GMT</pubDate><content:encoded><![CDATA[<p>JSON is the language APIs speak, but one misplaced comma and the whole file refuses to parse. Here is how to format JSON properly — and the five errors that break it most often.</p>
<p>What is JSON? JSON (JavaScript Object Notation) is a text format for data: keys and values in curly braces, arrays in square brackets. Every API, config file and package.json uses it.</p>
<p>Why format it? Minified JSON (one long line) is valid but unreadable. Formatted JSON — indented, one key per line — is what you debug with. Formatting never changes the data, only how it looks.</p>
<p>The 5 errors that break JSON:</p>
<ol>
<li>Trailing commas — {"name": "Ali",} — the comma after the last item is invalid in JSON. Remove it.</li>
<li>Single quotes — {'name': 'Ali'} — JSON needs double quotes around keys and strings.</li>
<li>Unquoted keys — {name: "Ali"} — keys must be quoted too.</li>
<li>Comments — // or /* */ are not part of JSON. Remove them before parsing.</li>
<li>Mismatched brackets — every { needs a }, every [ needs a ]. Count them from the outside in.</li>
</ol>
<p>How to check your JSON: Paste it into a formatter — it will pretty-print it and point at the exact line of the first error. This free one does it in your browser, nothing is uploaded: <a href="https://calcbean.com/json-formatter">https://calcbean.com/json-formatter</a></p>
<p>CalcBean — 139 free online calculators, plus a free PDF editor with no ads. Plain-English explanations. No sign-up.</p>
]]></content:encoded></item></channel></rss>