Development Documents

The jsondata paclkage provides for the structure operations on JSON data.

Concepts and Design

Examples

jsondata

[docs] [source]
jsondata module jsondata.__init__ (0)

jsondata.jsondata

JSONData

Provides operations modes in accordance to RFC7159 [RFC7159] and RFC4627 [RFC4627].

Attributes

The slim wrapper only around the attributes of native data structures:

  • JSONData.data - a reference to the in-memory JSON data, compatible to json [json] and ujson [ujson].
  • JSONData.schema - a reference to an optional schema based on jsonschema [jsonschema].

Operators

Evaluation Operators

[logic-operator] [docs] [source] [op-unit-scope]
exec __call__ JSONData.__call__ A

Comparison Operators

[logic-operator] [docs] [source] [op-unit-scope]
== __eq__ JSONData.__eq__ B,A
!= __ne__ JSONData.__ne__ B,A

Items

[operator] [docs] [source] [op-unit-scope]
del S[x] __delitem__ JSONData.__delitem__ B,A
__iter__ __iter__ JSONData.__iter__ B,A
S[x] __getitem__ JSONData.__getitem__ B,A
S[x] = v __setitem__ JSONData.__setitem__ B,A
get_data_items get_data_items JSONData.get_data_items B,A

jsondata.jsondataserializer

jsondata.jsonpatch

Supports RFC6902 [RFC6902].

JSONPatchItemRaw

JSONPatchFilter

Methods

[docs] [source] [logic-operator]
JSONPatchFilter JSONPatchFilter.__init__  

Operators

[docs] [source] [logic-operator]
__eq__ (4) JSONPatchFilter.__eq__ ==

jsondata.jsonpointer

Supports RFC6901 [RFC6901] and “Relative JSON Pointers - draft-handrews-relative-json-pointer-01” [RELPOINTER] .

Functions

[docs] [source] [logic-operator]
fetch_pointerpath fetch_pointerpath  

JSONPointer