How to open a JSON file (browser, editor, terminal, or online)
Every way to open a .json file: double-clicking in a browser, a text or code editor, the command line, and when an online JSON viewer is the faster option.
Read the guide
Guides, notes and background reading.
Every way to open a .json file: double-clicking in a browser, a text or code editor, the command line, and when an online JSON viewer is the faster option.
Read the guide
A one-page JSON reference: syntax rules, all six data types, common parse and stringify operations, and worked examples. Read here or download as an image.
Read the guide
The six value types JSON has, what each one cannot represent, and specific edge cases (big integers, trailing commas, duplicate keys) that catch people out.
Read the guide
JSON Pointer resolves one exact location and fails or succeeds. JSONPath is a query language that can match many values. Here is when to use each.
Read the guide
Where JSON shows up: REST API payloads, application configuration, NoSQL documents, log pipelines and browser storage, and what each one expects from it.
Read the guide
Why JSON replaced XML as the default API format: less markup for the same data, and a more direct match to how programs model data.
Read the guide
JSON and YAML can represent the same data. What differs is comments, readability, whitespace sensitivity and how forgiving each format is to write by hand.
Read the guide
What JSON actually is, why it replaced XML for most APIs, the six values it can hold, and where you will run into it day to day.
Read the guide
What the three dot separated parts of a JSON Web Token contain, why decoding one is not the same as verifying it, and what a decoder cannot tell you.
Read the guide
Using the JSON to JavaScript converter: what it accepts, what it refuses by name, why undefined is not silently turned into null, and how numbers stay exact.
Read the guide
Using the JSON diff tool to compare two documents by value instead of by text, and why reindenting a file should never show up as a change.
Read the guide
Using the JSON to Base64 converter, why the browser built-in function throws on non-ASCII text, and how the tool tells three kinds of decode failure apart.
Read the guide
Using the JSON to CSV converter, why every field comes back a string on the way back, and what happens to nested values, null and commas inside a cell.
Read the guide
Using the JSON to NDJSON converter, why blank lines are skipped, and how a broken line is reported by the number it actually has in your file.
Read the guide
Using the JSON to TypeScript generator, how nested objects get named types, and why an optional mark on a key means something specific about your sample.
Read the guide
Using the JSON to XML converter: choosing a root element, what happens to attributes, text and empty values, and why everything reads back as a string.
Read the guide
Using the JSON to YAML converter, why a numeric-looking string has to be quoted, and which YAML features the reader supports and refuses by name.
Read the guide
Using the JSON escape and unescape tool, why the forward slash is left alone, and when to escape everything above ASCII.
Read the guide
Using the JSON viewer to walk a nested document, copy the JSONPath of any value, and why it stays responsive on documents other viewers freeze on.
Read the guide
Using the JSON repair tool to turn a JavaScript object literal or a commented config into real JSON, with an itemised list of exactly what it changed.
Read the guide
Using the JSON flattener for config files and spreadsheets, why a key holding the separator is refused, and how unflattening tells an index from a key.
Read the guide
A walkthrough of the JSON formatter: indenting, minifying, reading the error gutter, and why some formatters quietly corrupt long numbers.
Read the guide
Using the JSON Schema generator: why a key missing from one record is marked optional, and how a schema built here is only as good as the sample.
Read the guide
Using the JSON minifier to strip whitespace without touching data, why format and minify are safe to switch between, and how much space it actually saves.
Read the guide
Using the JSON key sorter, why arrays are never touched, and the option that fixes 10 sorting before 2 in an alphabetical comparison.
Read the guide
Using the JSON URL encoder and decoder, when a space should be a plus sign instead of %20, and how the tool tells apart three different decode failures.
Read the guide
A walkthrough of the JSON Pointer evaluator: the ~0 and ~1 escapes, the empty pointer, and reading a failed lookup that names the keys that actually exist.
Read the guide
How the JSON validator names the real mistake instead of the token it choked on, and why it warns about duplicate keys that most validators ignore.
Read the guide
Using the JSON Schema validator to check a document against a schema and read every mismatch with its keyword and path, including how it handles a broken $ref.
Read the guide
The nine JSON errors that come up again and again, what the parser is actually complaining about in each case, and the exact edit that fixes it.
Read the guide
What happens to a document you paste into this site, how to verify the no upload claim yourself in about thirty seconds, and where the tools stop.
Read the guide
Every JSONPath selector worth knowing, each with a query you can run and the result it returns, plus three rules that explain most queries matching nothing.
Read the guide
This site uses cookies for analytics and advertising. You choose. Read the cookie policy