parse_json
Module Contents
Functions
|
create the corresponding object |
Recursively read json structure |
|
|
read a json file and convert it to the pykkn data management structure |
- parse_json.create_instance(dic)
create the corresponding object
- Parameters
dic (dict) – json structure or sub-structure
- Returns
one of the component types the type of return depends on the structure of json structure
- Return type
object
- Raises
TypeError – raised when given a wrong dataset class
TypeError – raised when given a wrong component class
- parse_json.recursive_create_instance(file)
Recursively read json structure create the corresponding object and assign the original property value
- Parameters
file (dict) – json structure or sub-structure
- Returns
one of the component types the type of return depends on the structure of json file
- Return type
object
- parse_json.pykkn_parse(path)
read a json file and convert it to the pykkn data management structure
- Parameters
path (str) – path of the object json file
- Returns
one of the component types the type of return depends on the structure of json file
- Return type
object