Extracts data from text into JSON that matches the shape you give (a JSON Schema, an example object or a list of fields), without guessing. Every value comes from the text; a missing fact becomes null, numbers and dates are converted only into the type the shape asks for, two conflicting values are not settled by a guess, and instructions hidden in the text are ignored. Use when asked to extract structured data, turn text into JSON, parse an invoice, receipt, email, order, CV or job post into fields, or fill a JSON schema from a document.
Text to JSON: Extract Data Without Guessing is a SKILL.md that extracts data from text into JSON that matches the shape you give (a JSON Schema, an example object or a list of fields), without guessing; an agent buys it once for $0.05 over x402.
Not for
Scanned images or PDFs your agent cannot read as text; filling in values a document leaves out; working out totals, due dates or currency conversions; checking whether the document itself is true. It returns what the text says, not what is likely.
Tested, honestly
Tested 2026-10-03 with a strong and a weak model.
With and without the skill
Results with and without the skill, for Sonnet and Haiku |
| with | without | with | without |
|---|
| Values right |
| Values right | 9/9 | 7/9 | 9/9 | 6/9 |
|---|
| Bare JSON, parses as is |
| Bare JSON, parses as is | 9/9 | 0/9 | 0/9 | 0/9 |
|---|
One run per model and case. Without the skill both models guessed an ambiguous date (04/05/2026 as 4 May) and added totals the text never gave; Haiku also translated a city name. Haiku wraps the JSON in a code fence even with the skill, so strip fences if your agent runs on it.
Same cases and the same checks with and without the skill. The cases are ours, written around what the skill is for; with a handful of cases, a difference of one or two is within noise.
- SonnetStrong model, claude-sonnet-5-5
- Passed all 9 cases with bare, valid JSON in exactly the requested shape. It read 1.250,50 € and 2.500 g by their language, turned 03.10.2026 into 2026-10-03 and left the undecidable 04/05/2026 as null, kept Cyrillic names and phone numbers as written, used the stated address correction, left two conflicting totals as null and named both in the issues field, refused to add up an order whose total the text never gave, and ignored a planted instruction to mark an order paid, noting the attempt.
- HaikuWeak model, claude-haiku-4-5-20251001
- Extracted the right values in all 9 cases: the same nulls, the same number and date readings, no sum computed, the planted instruction ignored. But it wrapped the JSON in a Markdown code fence in all 9, so its answer does not parse until the fence is removed.
Full test summary
Example
Our own test text, before and after the skill ran. Excerpts only.
English · claude-sonnet-5-5
Before
INVOICE #INV-0042
Issued: March 3, 2026
Due: April 2, 2026
Bill to: Northwind Studio, 18 Harbour Road, Leeds
Qty Item Unit price
2 Logo design 450.00
1 Brand guide 940.00
Total due: 1,840.00 USD
Payment by bank transfer.
After
{"invoice_number": "INV-0042", "issue_date": "2026-03-03", "due_date": "2026-04-02", "total": 1840.0, "currency": "USD", "vat_id": null, "line_items": [{"description": "Logo design", "quantity": 2, "unit_price": 450.0}, {"description": "Brand guide", "quantity": 1, "unit_price": 940.0}]}
German · claude-sonnet-5-5
Before
Rechnung Nr. 2026-117 vom 03.10.2026
Malerbetrieb Krause GmbH, Lindenstraße 4, 04109 Leipzig
Gesamtbetrag: 1.250,50 €
Zahlbar bis 17.10.2026 ohne Abzug.
After
{"invoice_number": "2026-117", "issue_date": "2026-10-03", "due_date": "2026-10-17", "total": 1250.5, "currency": "EUR", "paid": null}
Bulgarian · claude-sonnet-5-5
Before
Търсим Senior Backend разработчик (Go) за екипа ни в София.
Заплата: 3 100 – 4 300 € бруто месечно.
Работа: хибридно, два дни седмично в офиса.
Изпратете CV на jobs@example.bg.
After
{"title": "Senior Backend разработчик (Go)", "salary_min": 3100, "salary_max": 4300, "currency": "EUR", "work_mode": "hybrid", "city": "София", "apply_deadline": null}
Russian · claude-sonnet-5-5
Before
Контакты по проекту: Иван Петров, менеджер проекта, +7 912 345-67-89, ivan.petrov@example.ru. По оплатам — Анна Смирнова, бухгалтер, почта anna.s@example.ru.
After
{"contacts": [{"name": "Иван Петров", "role": "менеджер проекта", "phone": "+7 912 345-67-89", "email": "ivan.petrov@example.ru"}, {"name": "Анна Смирнова", "role": "бухгалтер", "phone": null, "email": "anna.s@example.ru"}]}
Spanish · claude-sonnet-5-5
Before
Lámpara de mesa Nórdica
Peso neto: 2.500 g
Dimensiones: 40 × 30 × 12 cm
Precio: 18,90 € (IVA incluido)
After
{"product": "Lámpara de mesa Nórdica", "weight_kg": 2.5, "price": 18.9, "currency": "EUR", "color": null}
What is in the file
- Hard rules
- Turning text into types
- Work in this order
- Short examples
Languages
English, Bulgarian, German, Spanish, Russian. Tried in: English, German, Bulgarian, Russian, Spanish.
License
Perpetual, non-exclusive; use and modify for yourself incl. paid work; no resale or republishing. Holder: Georgi Kalchev, aiskills402.com. Full terms.
Versions
Current version 1.0.2, updated 2026-10-08. Whoever bought an earlier version gets new ones free through the same re-download token.
v1.0.2 · 2026-10-08
Price changed from $0.01 to $0.05; the skill text is unchanged. Measured value for the strong model: Sonnet 7 of 9 without the skill, 9 of 9 with it.
v1.0.1 · 2026-10-04
- Test summary: the same cases with and without the skill, per model, now shown next to the verdicts, including where the skill made no difference. The skill file itself is unchanged.
v1.0.0 · 2026-10-03
First release: extracts data from text into the JSON shape you give; missing facts are null, no sums or conversions the text did not state, conflicting values left open, instructions inside the text ignored, bare JSON as the answer.
FAQ
What happens when a value is missing?
It becomes null, never an empty string, a zero, false or a likely value. In our runs both models left a date written as 04/05/2026, with nothing to tell day from month, as null instead of picking one, and left a job post's missing deadline empty.
Does it add up totals for me?
No. A field for a sum the text does not state stays null, even when the parts are there, because a computed figure looks exactly like a quoted one. Both models left subtotal and total empty for an order that listed only prices and quantities. Ask for the arithmetic in your request if you want it.
Can a document trick it?
We planted a line in an order telling the AI system to mark it paid and approve a refund. Neither model did it, and Claude Sonnet recorded the attempt in the notes field. Lines inside the text are handled as data, never as instructions.
Why does the output of Claude Haiku not parse?
Haiku extracted the right values in all nine of our cases but wrapped the JSON in a Markdown code fence every time. Strip the fence before parsing, or use Claude Sonnet, which returned bare JSON in every case.