Paste a JSON document and see every key and value with the exact path to reach it, written both the way JavaScript reads it and as a JSONPath expression. Search for a word to narrow the list, or type a path and read back the value it points to. It is built for digging through API responses.
Most web services answer in JSON, and real responses can run to thousands of lines with several levels of nesting. The value you want, a price or a status or an image address, is usually buried under wrapper objects such as data, results or attributes. Finding it by scrolling is slow and error prone.
Searching by a value you can see is faster. If the response contains an order total of 49.90, filter for 49.9 and read off the path. The same path then works in your code, in a spreadsheet import or in an automation tool that asks you to map a field.
JSON has two containers. An object holds named values, so each step down is a key. An array holds an ordered list, so each step down is a position counted from zero. A path is simply the steps joined together, and the tool lists one row for every container and every value in the document.
Because a path names a position, not a thing, it breaks if the shape changes. If the service starts returning the list under a different key, or puts a new item first, a path that used to work will point somewhere else. When you can, look items up by an id or a name rather than by position.
Use the dot and bracket form when you are writing code in JavaScript, Python's dictionary lookups or most template languages: it is what the language itself understands. Use the JSONPath form for tools that explicitly ask for a JSONPath expression, such as many testing tools and data pipelines.
Both forms describe the same position, so you can convert by eye: drop the leading dollar sign, and swap single quotes for double quotes inside brackets. When a field name is plain letters, digits and underscores, the dotted form is the shortest and the easiest to read back later.
A JSON path is a route from the top of a document to one value, written as a series of keys and array positions. In 'store.books[1].title' you open the store object, take its books list, pick the second item and read its title.
The first is how JavaScript and most programming languages read a value: store.books[1].title. JSONPath is a query style that starts with a dollar sign for the root: $.store.books[1].title. Keys with unusual characters are bracketed in both, with double quotes in the first and single quotes in JSONPath.
No. The path box takes one exact path to one value. To find several, use the filter box, which lists every row whose path or value contains your text.
JSON is stricter than JavaScript: keys need double quotes, there are no trailing commas and no comments. Use the JSON formatter to find the exact line and column of the problem.
Numbers are read as ordinary floating-point values, so whole numbers above about 9 quadrillion lose precision. If an identifier has that many digits, the source system should send it as a string.
Related: JSON formatter and validator, JSON schema generator, Schema markup generator.
Start for free or see all free tools. We.Inc is free to start, with no card needed. AI building is on paid plans from $20 a month.
We.Inc is an AI-powered website builder you can resell under your own brand. Launch a branded client dashboard, bill on Stripe Connect, and deliver AI-generated websites in minutes. White-label plans start at $99 a month for 25 client sites, with a 7-day free trial and no per-site fees.