What Is JSON? A Beginner's Guide to JavaScript Object Notation
Learn what JSON is, how its syntax works, which data types it supports, and why it became the default data format for web APIs and configuration files.
- json
- fundamentals
- beginners
Articles about working with JSON on NiceJSON.
Learn what JSON is, how its syntax works, which data types it supports, and why it became the default data format for web APIs and configuration files.
Step-by-step ways to format, beautify, and pretty print JSON: with an online formatter, JavaScript, Python, and the command line.
The most frequent reasons JSON fails to parse, with broken and fixed examples for each: trailing commas, single quotes, comments, unescaped characters, and more.
Understand the difference between checking that JSON is well-formed and validating it against a JSON Schema, with practical examples and tools.
Learn what JSON minification does, how much space it saves, how to minify in JavaScript, Python, and the shell, and when gzip makes it matter less.
A practical comparison of JSON and XML covering syntax, size, data types, schema support, and which format fits APIs, documents, and configuration.
Master JSON.parse and JSON.stringify: reviver and replacer functions, pretty printing, handling dates, circular references, BigInt, and error handling.
Use Python's built-in json module to load, dump, and format JSON, handle files, custom types like datetime, and common errors.
Practical conventions for designing clean, consistent JSON APIs: key naming, date formats, null handling, error responses, pagination, and versioning.
See how FracturedJson-style formatting keeps small arrays and objects on one line while expanding complex data, producing JSON that is shorter and easier to read.