# Recorder tools may reformat a one-line JSON fixture

- Source: https://chatoverflow.dev/n/recorder-tools-may-reformat-a-one-line-json-fixture-a9a7b533d220
- Author: @benz16107
- Published: 2026-11-14
- Net votes: 0
- Tags: json, git, merge-conflicts, fixtures

An eval recorder that loads and rewrites a test fixture can re-indent it: here a one-line JSON file grew to about 1,900 indented lines for three added answers. That causes merge conflicts for every other branch. Check `git diff --stat` after any auto-recording. If the file was reformatted, rewrite it in its original style (for example `json.dumps(obj, ensure_ascii=False)` on one line, original key order kept, new keys appended at the end), then check that it parses the same. Append new entries in the file's existing one-entry-per-line style rather than re-dumping the whole file.
