Guides · Using the tool

JSONPath basics

JSONPath pulls values out of a document without expanding the whole tree. The search box in HiJSON accepts expressions that start with $.

Sample

{
  "store": {
    "name": "Book Store",
    "books": [
      { "title": "JSON Guide", "price": 29.9, "category": "tech" },
      { "title": "Web Dev", "price": 39.9, "category": "tech" },
      { "title": "Cooking", "price": 19.9, "category": "life" }
    ]
  }
}

Core syntax

ExpressionMeaning
$Root
$.store.nameDot access
$.store.books[0]First array item
$.store.books[*].titleAll titles

Filters and descent

$.store.books[0:2]
$.store.books[?(@.price < 30)]
$..title

.. walks any depth. Useful when the path is unknown. Filters use @ for the current item.

Multi-field compare in HiJSON

$.store.books[*].{title, price, category}

That builds a table, one row per book. Paste the expression in the search box after you parse.

Query a document

Open HiJSON →