Catalog/data-transform-json-pointer

Data Transform

JSON Pointer resolve API

Resolves an RFC6901 JSON Pointer against a document, returning the decoded tokens, whether the target exists, and the referenced value. Answers 'What value does this JSON Pointer point to?', 'How do I resolve /a/b/0 with ~0/~1 escapes?'.

Price$0.01per request
MethodPOST
Route/v1/data-transform/json-pointer
StatusLive
MIME typeapplication/json
Rate limit120/minute
Cache0s public
data-transformjson-pointerrfc6901jsonresolvepathwrangle
API URLhttps://x402.hexl.dev/v1/data-transform/json-pointer
Integration docs
Example request
{
  "document": {
    "foo": [
      "bar",
      "baz"
    ],
    "a/b": 9
  },
  "pointer": "/foo/1"
}
Example response
{
  "pointer": "/foo/1",
  "tokens": [
    "foo",
    "1"
  ],
  "found": true,
  "value": "baz"
}
Input schema
{
  "type": "object",
  "required": [
    "document",
    "pointer"
  ],
  "properties": {
    "document": {
      "type": "object",
      "examples": [
        {
          "foo": [
            "bar",
            "baz"
          ],
          "a/b": 9
        }
      ]
    },
    "pointer": {
      "type": "string",
      "examples": [
        "/foo/1"
      ]
    }
  }
}
Output schema
{
  "type": "object",
  "additionalProperties": true
}