MCPcopy Create free account
hub / github.com/geekcomputers/Python / convert_json_to_python

Method convert_json_to_python

JsonParser.py:9–17  ·  view source on GitHub ↗

this function to convert any json file format to dictionary args: the json file return: dictionary contains json file data

(self, par_json_file)

Source from the content-addressed store, hash-verified

7 """
8
9 def convert_json_to_python(self, par_json_file):
10 """
11 this function to convert any json file format to dictionary
12 args: the json file
13 return: dictionary contains json file data
14 """
15 with open(par_json_file) as json_file:
16 data_dic = json.load(json_file)
17 return data_dic
18
19 def convert_python_to_json(self, par_data_dic, par_json_file=""):
20 """

Callers 1

get_json_valueMethod · 0.95

Calls 1

loadMethod · 0.45

Tested by

no test coverage detected