pypi / jsonpointer
jsonpointer
What changed in jsonpointer 3, from its official release notes, upgrade guides and advisories. Sources checked 2026-11-30.
3 breaking1 deprecations3 new APIs and options1 behavior and defaults1 tooling12 fixes and other
See which of these apply to your code, ranked, in your agent:
npx @unstale/cli initjsonpointer 321 changes
Breaking changes 3
Array-end pointers are handled as CLI resolution errors.
JsonPointer no longer indexes into strings.
JsonPointer.set() now validates the assignment target.
Deprecations 1
pairwise() is deprecated in favour of itertools.pairwise().
New APIs and options 3
Adds the create parameter to auto-create missing paths.
The CLI supports a positional pointer argument.
Adds a flag to suppress document content in JsonPointerException messages.
Behavior and default changes 1
Equality can now be reflected for non-pointer objects.
Tooling 1
Adds type hints through a separate package for developers using jsonpointer.
Fixes and other changes 12
The CLI exits with status 130 when interrupted.
When join() rejects a suffix, it keeps the original error.
Resolving missing mapping members no longer triggers __missing__.
Sequence append type errors are now wrapped in JsonPointerException, giving callers a consistent exception type.
Pointer file decoding errors are reported through argparse.
Owned CLI input files are closed after reading.
CLI JSON and pointer files are read as UTF-8.
Continues processing CLI batches after malformed JSON input.
Preserves control-flow exceptions when joining pointer parts.
Trailing spaces in member names are preserved in pointer files.
Errors from converting oversized array indices are normalized.
Joining pointers preserves JsonPointer subclasses.