A field inside an object
The email of the user.
JSON
{
"user": {
"name": "Ada",
"email": "ada@example.com"
}
}
Value: "ada@example.com"
JSON Pointer: /user/email
JavaScript: data.user.email
JSONPath: $.user.email
Open a JSON as a tree you can fold and search. Click any value to see its path, and copy it as a JSON Pointer, JavaScript or JSONPath.
The same value written as each kind of path, as the viewer shows them.
The email of the user.
JSON
{
"user": {
"name": "Ada",
"email": "ada@example.com"
}
}
Value: "ada@example.com"
JSON Pointer: /user/email
JavaScript: data.user.email
JSONPath: $.user.email
Lists start at 0, so the third order is number 2.
JSON
{
"orders": [
{ "id": "A1" },
{ "id": "B2" },
{ "id": "C3", "total": 42.5 }
]
}
Value: 42.5
JSON Pointer: /orders/2/total
JavaScript: data.orders[2].total
JSONPath: $.orders[2].total
In a JSON Pointer, / in a key is written ~1 and ~ is written ~0.
JSON
{
"sizes": {
"1/2 inch": 12.7
}
}
Value: 12.7
JSON Pointer: /sizes/1~12 inch
JavaScript: data.sizes["1/2 inch"]
JSONPath: $.sizes['1/2 inch']
Host it on JSONhost: your app reads it with a GET request, and you edit it from the website, the API or an AI agent.
Every hosted file is also an API. Read it, or a single value of it, and replace or patch it from your code.
Read the API docsRead the whole file
curl https://jsonhost.com/json/abc123Read one value
curl https://jsonhost.com/json/abc123/products/0/priceChange one field (JSON Patch)
curl -X PATCH https://jsonhost.com/json/abc123 \
-H "Authorization: YOUR_FILE_TOKEN" \
-d '[{ "op": "replace", "path": "/open", "value": false }]'Drop the file on the text box, or click "Open file". The tree shows only what's on screen, so files of tens of megabytes stay fast. Large objects start folded: open the parts you need, or search.
Yes, if the server lets other websites read it (CORS). Many APIs don't, and then the browser blocks the request: download the file and drop it here instead. Files hosted on JSONhost always open.
It's how to reach the value from the top of the document. A JSON Pointer (/orders/2/total) is the standard form used by JSON Patch and by the JSONhost API. The JavaScript form (data.orders[2].total) goes straight into your code, and JSONPath ($.orders[2].total) is used by tools like Postman and Kubernetes.
A formatter makes the text readable with indents. A viewer shows the structure: you fold what you don't need, count the items of each list, and find values without scrolling through thousands of lines.
No. The viewer runs in your browser. When you open a URL, your browser fetches it directly, without going through JSONhost.
With JSONhost, yes: host the JSON and add the JSON Pointer to its URL. GET https://jsonhost.com/json/abc123/orders/2/total returns just 42.5.
Upload a file, get a URL, and go back to building the part of your product that people see.