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

Method get_json_value

JsonParser.py:34–43  ·  view source on GitHub ↗

this function gets specific dictionary key value from json file args: par_value: dictionary key value par_json_file: json file return: value result

(self, par_value, par_json_file)

Source from the content-addressed store, hash-verified

32 return json.dump(par_data_dic)
33
34 def get_json_value(self, par_value, par_json_file):
35 """
36 this function gets specific dictionary key value from json file
37 args:
38 par_value: dictionary key value
39 par_json_file: json file
40 return: value result
41 """
42 data_dic = self.convert_json_to_python(par_json_file)
43 return data_dic[par_value]

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected