#!/c/'Program Files'/Python39/python

import json, sys

if len(sys.argv) > 1:
    first_argument = sys.argv[1]
    print("The first command-line argument is:", first_argument)
else:
    print("No command-line arguments provided.")


file = open(sys.argv[1], 'r', encoding='utf-8').read()
#file = file.encode('ascii').decode('unicode_escape').encode('latin-1').decode('utf-8')
#file = file.decode('')
ugly = json.loads(file)
pretty = json.dumps(ugly, indent=2).encode().decode('unicode-escape')
open(sys.argv[1], 'w', encoding='utf-8').write(pretty)

print('done')
