this function to convert any json file format to dictionary args: the json file return: dictionary contains json file data
(self, par_json_file)
| 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 | """ |