update validator

This commit is contained in:
Dr.Lt.Data 2024-10-19 21:47:10 +09:00
parent 290de33bbd
commit c41aaca444

View File

@ -3,7 +3,7 @@ import argparse
def check_json_syntax(file_path):
try:
with open(file_path, 'r') as file:
with open(file_path, 'r', encoding='utf-8') as file:
json_str = file.read()
json.loads(json_str)
print(f"[ OK ] {file_path}")