import json, sys sys.stdout.reconfigure(encoding='utf-8') with open('scratch/deep_scan_flaws.json', 'r', encoding='utf-8') as f: flaws = json.load(f) for item in flaws: if item['div'] == '03_건축부문': print(f"[{item['file']}] L{item['line']} {item['sec']} -> {item['type']}") print(f" {item['detail']}")