Examples:
Valid JSON Invalid JSONWhat is JSON?
JSON stands for JavaScript Object Notation, is a lightweight data-interchange format for structuring (representing) data. It is often used by web applications to communicate with each other. It is easy for humans to read and write. The data is in name and value pairs, separated by commas.
It holds objects inside curly braces { }.
Some more examples:
  Example 1. Simple JSON
[
{
"color" : "red",
"hex code" : "#FF0000",
"rgb code" : "rgb(255, 0, 0)"
},
{
"color" : "black",
"hex code" : "#000000",
"rgb code" : "rgb(0, 0, 0)"
}
]  Example 2. Nested JSON object
[
{
"user": {
"id": 101,
"name": "Arun Banik",
"contact": {
"phone": "+91-9876543210",
"email": "arun@example.com"
},
"roles": [
"admin",
"editor"
]
},
"status": "active"
}
]  Example 3. MIXED STRUCTURE
[
{
"product": "Laptop",
"price": 55000,
"specs": {
"ram": "16GB",
"storage": "512GB SSD"
},
"available": true
},
{
"product": "Phone",
"price": 25000,
"specs": {
"ram": "8GB",
"storage": "128GB"
},
"available": false
}
]  Example 4. MINIFIED JSON
🚀 This tool validates both standard and minified JSON, and also formats minified JSON into a clean, readable structure. It is an added premium feature.
[{"id":1,"title":"Hello World","summary":"This is a test JSON","tags":["test","json","sample"]},{"id":2,"title":"Second Item","summary":"Another entry","tags":["data","api"]}]Why use JSON?
JSON (JavaScript Object Notation) originates from JavaScript, a popular language among web developers worldwide. Despite its roots, JSON is language-independent, making it a universal data format compatible with any programming language, from Python and Java to PHP and C#. This flexibility makes JSON ideal for data exchange across diverse platforms and systems.
🛠️ More Free Tools
Pick Colors from any Image
Generate color palettes from an image upto 10 colors using this free tool. Extract Colors.
Color Palette Generator from Hex
Generate harmonious color palettes from a base color. Generate Palettes.
Hex to RGB Converter
Convert color codes between HEX and RGB formats. Try it.
HTML Table Generator with or without CSS
Effortlessly create HTML table code for your website. Enhance your site's design in seconds. Generate Tables.
Percentage Calculator
Find percentages, change, discounts, and more. Calculate Percentage.
Random Word Generator
Spark ideas with instantly generated words and phrases. Try our Random Word Generator.
HTML and CSS Minifier
Compress HTML and inline CSS for speed and SEO. Try it here.
Online JS Editor
Edit and refine your JavaScript before embedding. Open editor.
Word Counter
Instantly count words, characters, reading time, and visualize word frequency with a word cloud. Count here.
Crop Image Without Losing Quality
Optimize images alongside your HTML for faster load times. Resize here.
My Fancy Notepad
Minimal writing space with just‑enough features. Write here.
Sentence and Pragraph Counter
Count sentences instantly with our free online sentence counter tool. Count here.
All Tools
Fast, browser‑based utilities for developers, designers, and creators. No sign‑up, no downloads. Go to All Tools.