Lazy JSON Files (xonsh.lazyjson
)¶
Implements a lazy JSON file class that wraps around json data.
-
class
xonsh.lazyjson.
LJNode
(offsets, sizes, root)[source]¶ A proxy node for JSON nodes. Acts as both sequence and mapping.
Parameters: offsets : dict, list, or int
offsets of corresponding data structure, in bytes
sizes : dict, list, or int
sizes of corresponding data structure, in bytes
root : weakref.proxy of LazyJSON
weakref back to root node, which should be a LazyJSON object.