easyidp.jsonfile.read_json#
- easyidp.jsonfile.read_json(json_path)#
Read json file to python dict.
- Parameters:
json_path (str) – The path to json file
- Return type:
dict
Example
Data prepare:
>>> import easyidp as idp >>> test_data = idp.data.TestData()
Use this function:
>>> out = idp.jsonfile.read_json(test_data.json.for_read_json) >>> out {'test': {'rua': [[12, 34], [45, 56]]}, 'hua': [34, 34.567]}