package mcp-kit
Module Jsonschema_core.Json_pointerSource
JSON Pointer (RFC 6901).
A JSON Pointer is a string syntax for identifying a specific value within a JSON document. Example: /foo/bar/0 points to the first element of the array at key "bar" inside object "foo".
A parsed JSON Pointer as a list of unescaped reference tokens. The empty list represents the root pointer "".
Parse a JSON Pointer string into reference tokens. Returns Error for strings that don't start with / (except empty string). Unescapes ~1 to / and ~0 to ~.
Serialize a JSON Pointer to its string representation. Escapes ~ to ~0 and / to ~1.
Resolve a JSON Pointer against a JSON value. Returns the sub-value at the given path, or None if the path does not exist in the document.