#!/usr/bin/env python3 import json # Test the invalid JSON try: with open('/root/.hermes/wizard-outputs/spark/sample_invalid.json') as f: json.load(f) except json.JSONDecodeError as e: print(f"Error: Line {e.lineno}, Col {e.colno}: {e.msg}") print(f"Doc: {e.doc!r}") print(f"Pos: {e.pos}")