JSON Formatter
Format and minify JSON data.
A fast, client-side JSON formatter and minifier for developers.
➕ Add to Dashboard
📋 The Rise of JSON
JSON (JavaScript Object Notation) was "discovered" by Douglas Crockford in 2001. He claims he
didn't invent it—it was already part of JavaScript since 1999—he just recognized its potential and gave it a
name. Today, JSON is the most popular data interchange format on the web.
🤯 Wacky Facts
- JSON was originally called "JavaScript Markup Language" but "ML" was taken by XML
- The entire JSON specification fits on a single index card—it's that simple
- JSON doesn't support comments intentionally—Crockford removed them to prevent misuse for directives
- YAML is a superset of JSON—any valid JSON is valid YAML!
- The largest JSON file ever? NASA's asteroid database at over 200GB
💡 Useful Tips
- Validate first: A missing comma can break everything—always validate
- Use 2-space indentation: It's the most common convention and saves space
- Minify for production: Remove whitespace to reduce payload size
- Trailing commas: JSON doesn't allow them—but JavaScript does. Watch out when copying!
- Escape special characters: Quotes, backslashes, and newlines need escaping
← Back to Widget Library | Go to Dashboard