data

Use this when you need to pull specific values out of a JSON document by JSONPath and getting the path exactly right on deeply nested or large structures matters.

Use this when you need to pull specific values out of a JSON document by JSONPath and getting the path exactly right on deeply nested or large structures matters. Evaluates a JSONPath subset — $ (root), .name or ['name'] (child), [n] (index, negative allowed), [*] (wildcard), .. (recursive descent), and [start:end] (slice) — and returns every matching value in document order. Prefer this over hand-walking nested JSON, where it is easy to miscount array indices or miss a deep match. Filter (?()) and script (()) expressions are not supported and are rejected with a message naming the supported subset. Deterministic: same input, same output. Example: path "$.store.book[-1].title" over {"store":{"book":[{"title":"A"},{"title":"B"}]}} -> matches ["B"], count 1.

post/v1/query_json

Request

  • Base URL: https://api.clean.tools
  • URL: https://api.clean.tools/v1/query_json
  • Auth: none declared

Request body

jsonstring required

The JSON document to query, as a string. Must parse as valid JSON (object, array, or primitive).

pathstring required

JSONPath (subset). Supports $ root, .name / ['name'] child, [n] index (negative allowed), [] wildcard, .. recursive descent, and [start:end] slice (optional :step). Filter (?()) and script (()) expressions are not supported. Example: $.items[].id

Response

Structured tool result.

toolstring

Changes

No recorded changes to this operation across all 1 revision of this API.