Trying to fix basic functionality again.

This commit is contained in:
2025-03-23 11:53:47 -07:00
parent ebda48190a
commit 2141e81f42
406 changed files with 173963 additions and 69 deletions

14
scripts/check_json.py Normal file
View File

@@ -0,0 +1,14 @@
import json
import sys
path = sys.argv[1]
with open(path, 'r') as f:
content = f.read()
print(f"File has {content.count('{')} opening braces and {content.count('}')} closing braces")
try:
json.loads(content)
print('Valid JSON')
except Exception as e:
print(f'Invalid JSON: {e}')