Registry / serialization / jsonpointer

jsonpointer

JSON →
library3.1.1pypypi✓ verified 35d ago

A Python library for identifying specific nodes in a JSON document, implementing RFC 6901. Current version: 3.1.1. Release cadence: Regular updates with active maintenance.

serialization
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

Ensure correct import path to access JsonPointer class

from jsonpointer import JsonPointer

Demonstrates how to use JsonPointer to access a specific value in a JSON document.

import json from jsonpointer import JsonPointer # Sample JSON document json_data = { "store": { "book": [ {"category": "reference", "author": "Nigel Rees", "title": "Sayings of the Century", "price": 8.95 }, {"category": "fiction", "author": "Evelyn Waugh", "title": "Sword of Honour", "price": 12.99 } ] } } # Create a JsonPointer instance pointer = JsonPointer('/store/book/0/author') # Resolve the pointer to get the value author = pointer.resolve(json_data) print(author) # Output: Nigel Rees
Debug
Known footguns
breakingEnsure correct import path to access JsonPointer class
Upgrade
Version history

Breaking-change detection hasn't run for this library yet.

Audit
Security & dependencies

CVE tracking and dependency tree are planned for a later release.

Agent activity
0 hits · last 30 days

No traffic data recorded yet.

Resources