Feb-26-2020, 06:06 PM
exactly, there is just a function definition, you never call it. also, the text argument is not used. better, something within these lines:
import json def parse(fname): try: with open(fname) as f: return json.load(f) except ValueError as e: print('invalid json: %s' % e) return None file_name = r"C:\python-script\file\assetLink_tr-TR.json" print(parse(file_name))
If you can't explain it to a six year old, you don't understand it yourself, Albert Einstein
How to Ask Questions The Smart Way: link and another link
Create MCV example
Debug small programs
How to Ask Questions The Smart Way: link and another link
Create MCV example
Debug small programs