atlas/tools/validate_json.py

14 lines
255 B
Python
Raw Normal View History

2022-04-05 13:02:43 +02:00
#!/usr/bin/python
import sys
2022-04-05 12:53:53 +02:00
import json
2022-04-05 13:02:43 +02:00
path = "./../web/atlas.json"
# path override as 1st param: validate_json.py path_to_file.json
if (len(sys.argv) > 1):
path = sys.argv[1]
2022-04-06 06:47:57 +02:00
json.load(open(path, "r", encoding='utf-8'))
2022-04-05 12:53:53 +02:00
print("JSON is valid")