Skip to content
JsonEval Products Compare AI OCRDoc OCR (PDF, Img) → JSON

Compare AI OCR.
Measure the quality of extracted JSON.

Compare multiple models on your documents, using your prompt and the same expected answers. Find errors field by field, then compare quality, cost, and latency.

Contracts, invoices, delivery notes… Your documents, your criteria.

PDF & imagesAny document typeField scores
contrat_lumen_042.pdfFICTIONAL EXAMPLE
ATELIER LUMEN / CONTRACT
Atelier Lumen × Studio Atlas
CTR-2026-04218.09.2026

Service agreement

Duration from the effective date12 months
gold.jsonEXPECTED ANSWER
{
  "document_type": "contract",
  "reference": "CTR-2026-042",
  "effective_date": "2026-09-18",
  "duration_months": 12,
  "parties": [
    {
      "name": "Atelier Lumen",
      "role": "provider"
    },
    {
      "name": "Studio Atlas",
      "role": "client"
    }
  ]
}
Verify the reference against the document.
VALID JSON CAN STILL CONTAIN AN ERROR

The structure is correct.
What about the values?

A reversed date, an incorrect duration, or a missing party: valid JSON can still contain errors. Compare values against a reference verified in the document.

duration_monthsFICTIONAL EXAMPLE
Expected value12
Extracted by the model120

The type is correct. The value is not. The benchmark lets you inspect that difference.

THE SAME PROTOCOL FOR EVERY MODEL

Your extraction.
A reproducible test.

Start with a sample.
Expand to the cases that challenge you.

  1. 01

    Start with your prompt.

    Paste the prompt or cURL you use to generate JSON. Then define the expected fields and the criteria that matter for your evaluation.

    Prepare my evaluation
  2. 02

    Verify your references.

    Add your PDFs or images and the correct JSON you expect. If a model prefills your references, check them against the documents.

  3. 03

    Compare. Then iterate.

    Choose your models and confirm the cost estimate. Compare their responses on the same data, then measure the effect of your prompt changes.

THE FIELDS THAT MATTER TO YOU

Every field.
Its evaluation rule.

Scores between 0 and 1.
The detail behind the average.

Example criteria for a fictional contract
JSON fieldTypeWhat we checkPossible metric
referencestringThe right identifierexact
document_typestringThe right document typeexact
duration_monthsnumberDuration and its tolerancenumber_tolerance
effective_datedateA normalized datedate_match
parties[].namestringThe right organization namefuzzy / semantic
parties[].rolestringThe role of each partyexact
01 / COLLECTIONS

Match corresponding items.

Parties, items, or lines: compare corresponding list entries, even when their order changes.

02 / DOCUMENT INPUT

Compare input methods.

Native PDF or pages rendered as images: compare how the format affects extraction, using the same prompt.

03 / QUALITY × COST

Put quality in context.

Review errors alongside cost per document and latency. After correcting your references, recalculate scores using the saved responses.

FROM SCORE TO EXTRACTED VALUE

Find the field.
Check it in the document.

ocr-eval / invoices / benchmarkSTATIC DEMO
JsonEval demo: fictional invoice JSON extraction comparison by field and model
Heatmap → field → document → reference → prediction.Fictional screenshots and scores; no real performance claims.
FOR YOUR DOCUMENT EVALUATIONS

Before the first run.

Your fields define what you evaluate. Your references define the expected answers. The comparison shows the differences.

Which documents can I evaluate?

Contracts, invoices, delivery notes, forms: start with the PDFs or images in your dataset. Define the expected JSON fields, then JsonEval compares model responses against your verified references. File support depends on the model you choose.

Can I compare a native PDF with pages rendered as images?

Yes. Compare a native PDF and its pages rendered as images using the same prompt. Each variant appears separately in the benchmark. Support depends on the model and provider you choose.

How do I prepare reference answers?

The reference is the correct JSON expected for each document. Import these values, enter them manually, or prefill them with a model. Check them against the document and correct them before relying on the scores.

How do I compare lists in my JSON?

Contract parties, delivery note items, or invoice lines: configure the identifiers used to match corresponding items. Values are compared even when their order changes, and missing items become visible.

What scores and costs will I see?

Each field is compared against its reference using your chosen metric: exact match, text similarity, meaning, numbers, or dates. View scores, cost, and latency for each model. Every action that calls an AI starts with a cost estimate, including semantic evaluation.

YOUR NEXT TEST STARTS HERE

One prompt. Your data.
Answers to compare.

Paste your current prompt or cURL. Prepare an evaluation that answers your questions.