Quick Work Studio

உரைக் கருவிகள்

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

Prasad ஆல் · Quick Work Studio · வெளியானது 1 அக்டோபர் 2026 · புதுப்பிக்கப்பட்டது 29 அக்டோபர் 2026 · நாங்கள் உண்மைகளை எப்படி சரிபார்க்கிறோம்

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 அல்லது 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.

Fixing a broken example step by step

Here is a piece of JSON with four mistakes:

{name: 'Asha', "age": 029, "skills": ["excel", "sql",], // employee }

  1. The key name needs double quotes: "name".
  2. The value 'Asha' uses single quotes: change it to "Asha".
  3. The number 029 has a leading zero: write 29.
  4. The array ends with a trailing comma, and there's a comment. Remove both.

The valid version: {"name": "Asha", "age": 29, "skills": ["excel", "sql"]}. A validator would have stopped at the first error, so fix one problem, validate again, and repeat.

JSON vs a JavaScript object

JSON looks like JavaScript, and that's where many errors come from. JavaScript allows unquoted keys, single quotes, trailing commas, comments and values like undefined. JSON allows none of these. If you copy an object from JavaScript code into a JSON file or an API request, run it through a validator first.

Where you'll meet JSON

In all of these, one stray character stops the whole file from loading, which is why checking it before you save is worth the few seconds.

Try it: paste your data into the JSON வடிவமைப்பி & சரிபார்ப்பி to check it, pretty-print it or minify it. For sending JSON in a web address, the URL Encoder / Decoder can encode it safely.

About the author

Prasad writes Quick Work Studio's guides on everyday money, tax, documents and study tasks for readers in India. Every guide follows our தலையங்கக் கொள்கை: rules and rates are checked against official sources, and every sum is worked out with our own calculators.

புதிய கருவிகளை முதலில் பெறுங்கள்

புதிய கருவிகள், புதிய வழிகாட்டிகள், பணக் குறிப்புகள் மின்னஞ்சலில். ஸ்பேம் இல்லை, எப்போது வேண்டுமானாலும் விலகலாம்.

இலவசம். உங்கள் மின்னஞ்சலை யாருடனும் பகிர மாட்டோம்.

மேலும் கட்டுரைகள்

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)12 lakh on a cheque is "Rupees Twelve Lakh Only" and 1 lakh is "Rupees One Lakh Only". Chart of lakh and crore amounts, paise, and how to stop tampering.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 Guides