Skip to main content
Python Software Foundation 20th Year Anniversary Fundraiser  Donate today!

A json dereferencing tool.

Project description

jsonderef

A json dereferencing tool for python.

Currently only local references are supported but file and remote references are comming soon.

Json pointers evaluation is compliant with rfc 6901 (https://tools.ietf.org/html/rfc6901).

Installation

Best way is to use pip.

pip install jsonderef

Usage

from jsonderef import JsonDeref

document = {
  "key": "value",
  "ref": {"$ref": "#/key"},
  "array_ref": [ {"$ref": "#/key"}],
  "nested_ref": { "nest": {"$ref": "#/nested_ref"}}
}
dereferencer = JsonDeref(document)

print dereferencer.deref(max_deref_depth=5)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for jsonderef, version 0.1.0
Filename, size File type Python version Upload date Hashes
Filename, size jsonderef-0.1.0.tar.gz (3.0 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page