2.1.3.8. JsonSimpleNode¶
Contains the data model for a leaf JSON tree node.
Background
Pyfx models a JSON as a tree and the leaf of the tree represents the values inside the JSON data. For example,
1[
2 {
3 "Name": "John",
4 "Age": 18
5 }
6]
Both values (John and 18) are leaf nodes, while all the other parenthesis are non-leaf nodes.
Both leaf and non-leaf nodes are a data model to store the actual JSON data
and its relative position information inside the tree (such as parent, depth
etc), so that the constructed tree support tree walking and random accessing.
E.g., see primitive.string.StringNode.
Urwid Widget
Additionally, the node also creates and caches its related UI rendering unit
during runtime for better starting time. For details about the UI rendering unit
see JSONWidget for details.
E.g., see primitive.string.StringWidget
Classes
|
Leaf node to store JSON contents and cache JSONWidget. |