Quick Work Studio
{ "name": "Asha", "age": 29, "skills": ["excel", "sql"], "active": true}

Text Tools

JSON for Beginners: The Rules and the 6 Most Common Errors

Quick Work Studio · 2026-10-01

JSON (JavaScript Object Notation) is the most common format for sending data between apps and websites. It's easy to read, but it's also strict, and a single misplaced character makes the whole thing invalid.

What JSON looks like

JSON is built from two structures: objects, which are sets of "key": value pairs inside curly braces { }, and arrays, which are ordered lists inside square brackets [ ]. For example, a person might be written as {"name": "Asha", "age": 29, "skills": ["excel", "sql"], "active": true}.

The six value types

A JSON value can only be one of: a string in double quotes, a number, true or false, null, an object or an array. There are no dates, functions or "undefined", dates are usually stored as strings like "2026-10-01".

The 6 most common errors

Pretty-printed vs minified

The same JSON can be written with indentation and line breaks to make it readable ("pretty-printed"), or with all whitespace removed to make it smaller ("minified"). Both contain exactly the same data, whitespace outside strings doesn't matter.

How to find an error quickly

Validators report the line and position where parsing failed. The real mistake is often just before that point, a missing comma on the previous line, or an unclosed quote or bracket earlier on.

Try it: paste your data into the JSON Formatter & Validator to check it, pretty-print it or minify it. For sending JSON in a web address, the URL Encoder / Decoder can encode it safely.

More articles

How Many Words Is That? Word and Character Limits ExplainedHow many words fit on a page, how long a speech takes, and the character limits for posts, meta descriptions and SMS, with tips for cutting to fit.How to Write an Amount in Words on a Cheque (Indian Format)Lakh and crore wording, the "Rupees … Only" format, writing paise, and the small habits that stop anyone tampering with your cheque.Base64, Explained: Why Your Browser Sometimes Shows Weird TextWhat Base64 actually does, why it is not encryption, and where you run into it every day.

← Back to Blog