A beginner-friendly explanation of the format that quietly powers most of the modern web, with real examples.
If you've opened a browser's developer tools and looked at a network request, you've almost certainly seen JSON without necessarily knowing the name for it. It's the format most websites use to send data back and forth between your browser and their servers.
JSON (JavaScript Object Notation) represents data as key-value pairs, wrapped in curly braces. A simple example describing a person might look like this: { "name": "Alex", "age": 29, "isActive": true }
Each key (like "name") is paired with a value (like "Alex"), separated by a colon, with commas between pairs. Values can be text, numbers, true/false, null, or even nested lists and objects.
JSON won out over older formats like XML mainly because it's compact and maps naturally onto how most programming languages already represent data — as objects and arrays. It's also human-readable, which makes debugging far easier than working with binary formats.
In practice, JSON is often minified — all on one line, with no spacing — which makes it nearly impossible to read by eye. The JSON Formatter takes messy or minified JSON and lays it out with proper indentation, and flags syntax errors like a missing comma or an unclosed bracket, which are the most common reasons JSON fails to parse.
A trailing comma after the last item in an object or array is one of the most common JSON errors — unlike JavaScript objects, standard JSON doesn't allow it.
They look almost identical, but JSON is stricter — keys must be in double quotes, and it can't contain functions, comments, or trailing commas the way a JavaScript object literal can. That's part of why JSON works reliably across different programming languages, not just JavaScript.
No — despite the name, JSON is language-independent and is used with virtually every modern programming language, not just JavaScript.
No — standard JSON doesn't support comments, which trips people up when copying from a JavaScript config file.
JSON is the data format itself; a .json file is simply a text file whose contents follow that format.
The last part of a URL does more SEO and usability work than its size suggests. Here's how to write one well.
Regular expressions are powerful and famously unreadable. Here's how to build one up piece by piece instead of guessing blindly.
Spaces, symbols, and special characters can't travel safely in a URL as-is. Here's the actual rule for what gets encoded and why.
That 36-character string of hex digits and dashes shows up in database records, API responses, and file names everywhere. Here's why.