JSON Viewer

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.

Runs only in your browser.
Valid JSON
Your JSON
root{5 keys}
page:1
perPage:3
total:1284
orders:[3 items]
0:{8 keys}
id:"ord_8f2k1"
status:"shipped"
createdAt:"2026-11-02T09:14:00Z"
customer:{4 keys}
id:5521
name:"Ada Lovelace"
email:"ada@example.com"
vip:true
items:[2 items]
0:{4 keys}
sku:"BEAN-ETH-250"
name:"Ethiopia Yirgacheffe 250 g"
qty:2
price:12.5
Click a value in the tree to see its path.
2.0 KB · 76 values

Get a URL for this JSON

Fix the errors first: only valid JSON can be hosted.

How to use it

  1. Paste your JSON, drop a .json file, or open a URL.
  2. Click the arrows to open and close objects and arrays, or use "Expand all" and "Collapse all". The arrow keys work too.
  3. Type in the search box to find a key or a value: the tree opens to show each match.
  4. Click a value to see its path, and copy it in the form your code needs.

Paths to a value

The same value written as each kind of path, as the viewer shows them.

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

An item of a list

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

A key with a space or a slash

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']

Need a URL for this JSON?

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 docs

Read the whole file

curl https://jsonhost.com/json/abc123

Read one value

curl https://jsonhost.com/json/abc123/products/0/price

Change one field (JSON Patch)

curl -X PATCH https://jsonhost.com/json/abc123 \
  -H "Authorization: YOUR_FILE_TOKEN" \
  -d '[{ "op": "replace", "path": "/open", "value": false }]'

Questions

How do I open a large JSON file?

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.

Can I open a JSON from a URL?

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.

What's the path shown for each value?

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.

What's the difference between a JSON viewer and a formatter?

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.

Is my JSON uploaded?

No. The viewer runs in your browser. When you open a URL, your browser fetches it directly, without going through JSONhost.

Can my app read a single value of a JSON?

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.

More JSON tools

All JSON tools

Host your first JSON in the next minute.

Upload a file, get a URL, and go back to building the part of your product that people see.