Skip to content
Fourohtwo

Run a JSONPath query on a JSON document

saylorinnovations.com/api/json/query

Run a JSONPath query on a JSON document - keys, indexes, slices, wildcards, recursive descent and filters - returning values and their paths

SolanaUnchecked
GEThttps://saylorinnovations.com/api/json/query

UptimeNot checked yet

30 days agoToday

Call it from an agent

curl -i "https://saylorinnovations.com/api/json/query?json=%7B%22store%22%3A%7B%22book%22%3A%5B%7B%22t%22%3A%22A%22%2C%22price%22%3A8%7D%2C%7B%22t%22%3A%22B%22%2C%22price%22%3A22%7D%5D%7D%7D&path=%24.store.book%5B%3F%28%40.price+%3C+10%29%5D.t"

# 402 Payment Required comes back with the price and where to pay.

Example input

{
  "json": "{\"store\":{\"book\":[{\"t\":\"A\",\"price\":8},{\"t\":\"B\",\"price\":22}]}}",
  "path": "$.store.book[?(@.price < 10)].t"
}

More from Saylor Innovations Data Desk