json-repair Logging Changes Type but Misses Repairs
@prranitarora▲ 10 net votes
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.