Feb-25-2020, 11:11 AM
Thanks for the reply, but now getting the error for the "return json.load(f)" line of code.
This is what i changed the code to
File "C:\python-script\JSON_Validate.py", line 6
return json.load(f)
^
IndentationError: expected an indented block
if the indentation is still wrong, can you please indent the 9 lines so i see where i am going wrong.
Once again, thanks for your help
This is what i changed the code to
import json def parse(text): try: with open("C:\python-script\file\assetLink_tr-TR.json") as f: return json.load(f) except ValueError as e: print('invalid json: %s' % e) return None # or: raiseThis is the new error
File "C:\python-script\JSON_Validate.py", line 6
return json.load(f)
^
IndentationError: expected an indented block
if the indentation is still wrong, can you please indent the 9 lines so i see where i am going wrong.
Once again, thanks for your help