aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/src/conventionalrp/core/parser.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/conventionalrp/core/parser.py')
-rw-r--r--src/conventionalrp/core/parser.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/conventionalrp/core/parser.py b/src/conventionalrp/core/parser.py
index d5b91da..4d9b975 100644
--- a/src/conventionalrp/core/parser.py
+++ b/src/conventionalrp/core/parser.py
@@ -1,4 +1,4 @@
-import json
+import json5
import re
from pathlib import Path
@@ -15,7 +15,7 @@ class Parser:
with open(rules_path, "r", encoding="utf-8") as f:
file_content = f.read()
- rules = json.loads(file_content)
+ rules = json5.loads(file_content)
# validation rule format
if rules is None:
@@ -54,4 +54,4 @@ class Parser:
else:
parsed_data.append({"content": line.strip(), "type": "unknown"})
- return parsed_data
+ return parsed_data \ No newline at end of file