# -*- coding: utf-8 -*-
import json, pathlib, sys, io
sys.stdout = io.TextIOWrapper(sys.stdout.buffer, encoding="utf-8", errors="replace")
BASE = pathlib.Path(r"D:\work buddy\2026-11-05-14-15-52")
d = json.load(open(BASE / "_density_report.json", encoding="utf-8"))
print(type(d), list(d.keys())[:8] if isinstance(d, dict) else len(d))
rows = d["rows"] if isinstance(d, dict) and "rows" in d else d
print("rows", len(rows), "keys", list(rows[0].keys()))
print(json.dumps(rows[0], ensure_ascii=False)[:400])
