JSONPath Tester API
Evaluate a JSONPath expression against JSON and return every match with its normalised path, JSON Pointer and value. Filters such as [?(@.price < 10)] run in a safe interpreter (no eval).
POST /api/v1/tools/jsonpath-testerMCP jsonpath_testerDeveloper ToolsTest JSONPath expressions against your JSON and see the matching values and their paths, with a clickable syntax cheat sheet. Runs safely in your browser.
Input
Send these as a JSON object. Unknown fields are rejected.
- input
- The JSON document to query. (string, required)
- path
- The JSONPath expression, starting with $, e.g. $.store.book[?(@.price < 10)].title or $..author. (string, up to 1000 characters, required)
curl https://pithlab.com/api/v1/tools/jsonpath-tester \n -H "Authorization: Bearer $PITHLAB_KEY" \n -H "Content-Type: application/json" \n -d '{"input":"{\"store\":{\"book\":[{\"title\":\"Dune\",\"price\":9.99},{\"title\":\"Emma\",\"price\":12.5}]}}","path":"$.store.book[?(@.price < 10)].title"}'Example response
{
"ok": true,
"result": {
"count": 1,
"matches": [
{
"path": "$['store']['book'][0]['title']",
"pointer": "/store/book/0/title",
"value": "Dune"
}
]
}
}