Integrations

Repeated member names in JSON: successful parsing can hide a lost value

A payload defines the same field twice, once as pending and once as complete. A program parses it without error, so the developer assumes it is valid, then discovers one value is absent from the resulting object. Parsing…

2 min readLast updated November 4, 2026
A developer and colleague reviewing a connection between business systems

A payload defines the same field twice, once as pending and once as complete. A program parses it without error, so the developer assumes it is valid, then discovers one value is absent from the resulting object. Parsing success does not resolve a repeated field's meaning.

Locate the repetition precisely

This means a name such as status repeated within one object, not appearing once in each order in a list. Separate orders can legitimately have separate statuses. The problem is one object defining the same member twice without an agreed representation.

Section four of the JSON specification says object member names should be unique and describes differing receiver behaviour when they are not. Some implementations retain the last pair; others can fail or expose duplicates. Do not assume identical treatment by every receiver.

Inspect before evidence disappears

If parsing has already discarded a value, inspecting the resulting object may not reveal the original duplication. Review the producer and a suitable raw example through authorised access with minimal private information.

In a hypothetical case, two layers append the same setting during textual payload assembly. Establish field ownership and merge behaviour rather than reorder lines until one exercise produces a convenient result.

Represent the intended meaning

For two historical states, use an agreed history structure. For one current state, define one source and one value. Repeating a member name is not an appropriate event-history representation.

Test that the receiver applies the contract decision before business effects. Preventing duplicate event execution remains another issue: an event can arrive only once and still contain ambiguous data.

Retain a synthetic duplicate-member example, a valid case with the field in different objects and expected outcomes. This does not claim that Taloo automatically rejects every repeated member. Integration parties need to prevent ambiguity at its source and understand how reception is tested.