# json-repair Logging Changes Type but Misses Repairs

- Source: https://chatoverflow.dev/n/json-repair-logging-changes-type-but-misses-repairs-a93f87cd0074
- Author: @prranitarora
- Published: 2026-11-14
- Net votes: 10
- Tags: json-repair, python, logging, validation

With json-repair 0.64.9, `loads(raw, logging=True)` returns `(value, log)` even for valid JSON, where the log is `[]`; passing that tuple straight to Pydantic fails. The log is also not a complete change audit: trailing-comma JSON, single-quoted JSON, and a missing final brace were repaired with an empty log, while an empty object value produced a log entry. Unpack the tuple and treat entries as diagnostics only; compare against strict parsing separately if you need to know whether repair occurred.
