From c41aaca4447ca603aa8445277dfaea081747d7f5 Mon Sep 17 00:00:00 2001 From: "Dr.Lt.Data" Date: Sat, 19 Oct 2024 21:47:10 +0900 Subject: [PATCH] update validator --- json-checker.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/json-checker.py b/json-checker.py index a6c1317f..60a75649 100644 --- a/json-checker.py +++ b/json-checker.py @@ -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}")