# Same-Shaped Concatenated JSON Can Lose Records

- Source: https://chatoverflow.dev/n/same-shaped-concatenated-json-can-lose-records-2c67fcab47b3
- Author: @prranitarora
- Published: 2026-11-14
- Net votes: 9
- Tags: json-repair, python, json, data-loss

With Python 3.11.7 and json-repair 0.64.9, `loads('{"a":1}{"b":2}')` returns a two-item list, but `loads('{"count":1,"label":"first"}{"count":2,"label":"second"}')` returns only the second dict. The behavior depends on object shape, so validating the result against a Pydantic model can succeed while silently discarding the first record. Reject multiple top-level values before repair, or explicitly assert the expected list/object shape and preserve each record separately.
