A synthetic Checkup test shows how parsing can hide conflicting invoice values

Two constructed responses contain the same repeated JSON key. After Node parses and saves them, one matches every checked field and the other retains a mismatch—showing why the original text matters.

View sources
In this article
  1. Quick answers
  2. A complete match can follow an ambiguous response
  3. Two values under the same key
  4. The point where the conflict disappears
  5. Why preserving the original changes the check
  6. What this adds to earlier examples
  7. An inspectable exercise with a fixed scope
  8. Sources & method

Quick answers

What did the experiment find?

Both original strings were rejected for a repeated item_id key. After Node parsed and saved them, placing the correct value last produced 37 of 37 matches; reversing the order produced 36 of 37.

Source 2 Source 3

Does Checkup miss repeated keys?

It rejects them when the original text is supplied. A separate parse-and-save step can remove the repeated member before Checkup receives the copy.

Source 4 Source 5

Was this an AI extraction test?

No. AI Toolcast constructed two cases from one fictional invoice and ran local deterministic code. No model, n8n workflow or real invoice was tested.

Source 1 Source 3

The practical takeaway

Preserve the original JSON text and check repeated member names before relying on a parsed-and-saved copy. A complete field match describes the copy being compared.

A complete match can follow an ambiguous response

AI Toolcast's November 18 synthetic experiment demonstrates a limit of checking invoice JSON after another step has parsed and saved it. Two deliberately conflicting inputs were rejected by our AI Extraction Checkup. Once Node.js converted them to objects and back to text, one produced a complete field match.

The new evidence is a reproducible comparison of those two paths, not a new Checkup release or a newly discovered JSON rule. For builders checking AI extraction workflows, it illustrates a specific question: does the report describe the original response, or a later representation that has already lost information?

Source 1Source 2Source 3

AI Toolcast article card: A synthetic Checkup test shows how parsing can hide conflicting invoice values. Workflows. November 18, 2026.
Original AI Toolcast editorial graphic based on this report; not a product screenshot or test result. Source: AI Toolcast.

Two values under the same key

The experiment used Node.js v22.15.0, Checkup comparison rules 1.0.0 and the existing fictional invoice synthetic-invoice-000147. It changed only the item_id member on printed line 02, inserting both the checked string "0012" and the existing changed-ID sample's "012". All other fields and rows stayed unchanged.

One case placed "012" first and "0012" second. The other reversed their order. These are repeated member names within the same JSON object, not two invoice rows sharing an identifier. Both values remained strings; the experiment did not convert them to numbers.

Checkup returned duplicate_key for both original texts. Its matched-field count was unavailable because no invoice values were compared. That is an input rejection, not a zero-out-of-37 accuracy result.

Source 2Source 3Source 4

The point where the conflict disappears

The script then passed each original string through JSON.parse and wrote the resulting object back as text with JSON.stringify. With the correct value last, Node retained "0012" and the saved copy matched all 37 checked fields. With "012" last, the copy matched 36 fields and reported one item-ID mismatch.

The saved copy with "0012" last was byte-for-byte identical to the script's compact checked answer. Both the unambiguous answer and the conflicting input therefore ended up as identical text. Inspecting that saved copy alone cannot reveal whether the earlier response contained the conflict.

This follows JavaScript's specified behavior. The ECMAScript specification says later occurrences of a repeated name overwrite preceding values. RFC 8259 recommends unique names within objects and warns that implementations differ: some retain the last pair, some reject the input, and some expose all pairs. The Node result should not be generalized to every parser.

Source 2Source 3Source 5Source 6

Why preserving the original changes the check

Checkup's implementation still has access to the supplied text. It first uses JSON.parse to validate grammar, then scans that original text for repeated keys before comparing invoice fields. Parsing inside the checker therefore does not prevent its duplicate check; replacing the text with a separately saved copy removes the evidence that scan needs.

The practical implication is to retain the original response alongside any processed version. Where raw text is available, inspect repeated member names before accepting a parse-and-save transformation as harmless cleanup. Checkup's existing guidance recommends requesting an unambiguous new response rather than choosing which conflicting value should win.

A hypothetical handover report should therefore identify which representation it checked. If it records only a complete match on the saved copy, it establishes agreement for that copy under the exercise's rules. It leaves unanswered whether the original response contained a conflict.

Source 4Source 7

What this adds to earlier examples

Our earlier guide separates schema compliance from agreement with the source invoice: correctly shaped data can still contain wrong values. The November 4 CSV example follows a different loss, when an importer's numeric inference removes leading zeroes.

This study follows repeated JSON members through parsing and serialization while keeping both candidate values as strings. Checkup already documented the risk. The added contribution is the executed opposite-order comparison, including the case in which a rejected original becomes a fully matching saved copy.

Source 1Source 7Source 8Source 9

An inspectable exercise with a fixed scope

The public study includes its reproduction script and a result file recording the execution time, runtime version, source hashes and outputs. Its documented reproduction command uses Node.js v22.15.0, reads the supplied local files and prints results. No AI account or paid model call is required for this experiment.

AI Toolcast owns Checkup, a free browser exercise requiring no signup. Its comparison is limited to the supplied fictional invoice. This run tested two constructed strings, not extraction quality, production connectors, n8n execution or customer outcomes. Its useful result is identifying where evidence disappeared, not estimating how often real workflows encounter that problem.

Source 1Source 3Source 7

Sources & method

Reporting on AI Toolcast's recorded November 18 synthetic QA experiment using Node.js v22.15.0 and AI Extraction Checkup rules 1.0.0, checked against public results, reproduction code, comparator code and JSON specifications. The recorded run used no AI model, n8n workflow or customer document. The writer inspected the evidence without rerunning the experiment.

  1. AI Toolcast: duplicate item_id experiment and reproduction instructionsPublished November 18, 2026
  2. AI Toolcast: recorded November 18 experiment resultsPublished November 18, 2026
  3. AI Toolcast: experiment reproduction scriptPublished November 18, 2026
  4. AI Toolcast: Checkup comparator at the study commitAccessed November 18, 2026
  5. ECMAScript language specification: JSON parsingAccessed November 18, 2026
  6. RFC 8259, section 4: JSON objects and repeated namesAccessed November 18, 2026
  7. AI Toolcast: AI Extraction Checkup and input-handling guidanceAccessed November 18, 2026
  8. AI Toolcast: schema versus source fidelity guidePublished October 23, 2026
  9. AI Toolcast: earlier CSV identifier experimentPublished November 4, 2026

Source pages reviewed November 18, 2026. Analysis and suggested evaluation methods are AI Toolcast’s own.

AI Toolcast owns AI Extraction Checkup and prepared this synthetic study with AI assistance. Reporting, development and review were AI-assisted. All recorded study activity was internal QA; it is not evidence of external use, customer results or model accuracy. No sponsored placement or affiliate links.

Found a possible error? How to report a correction.