An answer can look like JSON while a trailing comma makes it unusable. It can also parse successfully while storing a price as dollars instead of cents. Those are different errors, and a useful check should tell them apart.

The fictional US coffee-shop menu below supplies every item and price. The finished JSON, full request and browser checker let you reproduce the task without guessing a schema or installing another app.

Specify the contract before asking for JSON

Give GPT the exact keys, data types, source facts and output-only rule. Ask for raw JSON, then check syntax, structure and values separately. ChatMore offers GPT chat and coding help on iPhone for drafting and revising structured text; the checker on this page validates the fictional menu example in your browser.

For this task, request one object containing currency and items. Set currency to USD, list three items in a fixed order, and store each price as an integer number of cents. A natural-language prompt guides the output; it does not guarantee that every answer will follow the contract.

Start with a complete three-item result

Our fictional menu has Coffee at $3.00 USD, Croissant at $4.50 USD and Lemonade at $5.25 USD. These are supplied practice prices, not current offers. Multiply each dollar amount by 100: 300, 450 and 525 cents.

The root is one object. Its items value is an array containing three objects. Each object has the same three keys, while the values identify the item and its price. This is an editorial worked result, not a captured app response.

{
  "currency": "USD",
  "items": [
    {
      "id": "coffee",
      "name": "Coffee",
      "priceCents": 300
    },
    {
      "id": "croissant",
      "name": "Croissant",
      "priceCents": 450
    },
    {
      "id": "lemonade",
      "name": "Lemonade",
      "priceCents": 525
    }
  ]
}

The input and expected result agree

Example output

Coffee
id coffee; name Coffee; priceCents 300.
Croissant
id croissant; name Croissant; priceCents 450.
Lemonade
id lemonade; name Lemonade; priceCents 525.
Copy complete JSON request

Return only one JSON object, with no Markdown fences, comments or explanation. Use exactly the root keys currency and items. currency must be the string USD. items must be an array of exactly three objects, in the order below. Each item must contain only id, name and priceCents. id and name are strings; priceCents is an integer number of cents, not a dollar amount or a quoted number. Use unique object keys. Do not add tax, discounts, descriptions or extra items. Use American English. FICTIONAL US COFFEE-SHOP MENU coffee | Coffee | $3.00 USD croissant | Croissant | $4.50 USD lemonade | Lemonade | $5.25 USD Convert the supplied prices to integer cents and preserve each id and name exactly. These are supplied sample prices, not live offers.

Check the shape before the individual values

The drawing maps each pictured menu item to one array position. The identifiers are coffee, croissant and lemonade; array positions begin at zero, so the third item is items[2]. The same USD currency applies to all three.

Keep structure distinct from truth. JSON permits many kinds of values, but this menu contract requires one root object, one currency string and a three-entry items array. A valid top-level array would still fail this particular task.

  • Root keys: currency and items only.
  • Currency: the string "USD".
  • Each item: id and name strings, plus priceCents as an integer.
  • Order and values: coffee/300, croissant/450, lemonade/525.
  • No invented tax, discount, description or fourth item.
Coffee, croissant and lemonade map to three array entries with prices 300, 450 and 525 cents.

Try the menu checker on this page

The checker accepts the raw response and reports whether it parses. When syntax is valid, it compares the result with this article’s exact menu keys, order, names and prices. It is a browser tool on this website, not a claim that ChatMore runs a JSON validator.

Use Load example to populate the complete result, then Check JSON. Change Coffee’s priceCents from 300 to "300" and check again: the JSON syntax remains valid, but the price is now a string and the menu check fails. Restore the unquoted integer 300 to correct it.

Ready for a sample under 20,000 characters.

Repair one syntax error without changing the data

This shorter broken sample has a comma after 300, immediately before the item’s closing brace. JSON does not allow that trailing comma. Remove only that comma first; keep all names, keys and numbers unchanged.

After that repair, the shorter sample can parse, but it still fails our menu contract because it contains only Coffee. A syntax repair does not complete the three-item task. Restore the Croissant and Lemonade entries from the supplied source before treating the result as finished.

{"currency":"USD","items":[{"id":"coffee","name":"Coffee","priceCents":300,}]}

Two separate repairs

Example output

Syntax repair
{"currency":"USD","items":[{"id":"coffee","name":"Coffee","priceCents":300}]}
Remaining task error
Only one item remains. The required three-item array is incomplete; add croissant/450 and lemonade/525 using the complete example above.
Copy complete JSON request

Repair only the JSON syntax in this sample. Do not add or change source values. Then separately list any failure against the required three-item menu contract. Broken sample: {"currency":"USD","items":[{"id":"coffee","name":"Coffee","priceCents":300,}]} Required items in order: coffee/Coffee/300, croissant/Croissant/450, lemonade/Lemonade/525. Currency USD. Each item has only id,name,priceCents. A valid one-item array is still incomplete.

Look for the errors a tidy-looking answer can hide

JSON strings and object keys use double quotation marks. Numbers such as 300 are different from strings such as "300". true, false and null are unquoted literals; this menu does not require any of them. Comments, Markdown fences and extra explanation do not belong in the raw JSON document.

Use unique object keys. This checker uses JSON.parse, which can retain the last value when a key is repeated; it does not diagnose duplicate keys. Inspect the source for repeated names before using a result. It also does not verify a real menu, live prices, tax or another application’s import rules.

For your own dataset, write the receiving system’s required fields and types before requesting output. Our fixed-menu checker should not be used to approve an unrelated schema. Keep the original facts alongside the output so you can check values independently.

  • No trailing commas or single-quoted keys.
  • No quoted number where the contract requires an integer.
  • No code fence, comment or explanatory sentence around the JSON.
  • No duplicate keys, missing records or silent change of units.

Carry the same contract into your next ChatMore request

Give ChatMore your actual non-sensitive source values and a small explicit contract. Ask for one result, check it, then request the specific correction the check found. For example: “priceCents must be an integer, not a string; preserve the three item names and order.”

If an answer adds unsupported details, remove the assumption from the next brief instead of asking for more polished formatting. The goal is data another task can use, not an answer that merely resembles code.

For related checks, use the AI answer verification guide, iPhone code-help workflow and structured work prompts.

Prompts to try

Prompt 1

Return only one JSON object, with no Markdown fences, comments or explanation. Use exactly the root keys currency and items. currency must be the string USD. items must be an array of exactly three objects, in the order below. Each item must contain only id, name and priceCents. id and name are strings; priceCents is an integer number of cents, not a dollar amount or a quoted number. Use unique object keys. Do not add tax, discounts, descriptions or extra items. Use American English. FICTIONAL US COFFEE-SHOP MENU coffee | Coffee | $3.00 USD croissant | Croissant | $4.50 USD lemonade | Lemonade | $5.25 USD Convert the supplied prices to integer cents and preserve each id and name exactly. These are supplied sample prices, not live offers.

Quick checklist

  • State the exact root, keys, types and supplied values.
  • Request JSON only, without fences or commentary.
  • Check parsing, then the required shape, then every source value.
  • Keep prices in the agreed units and distinguish numbers from strings.
  • Check for duplicate keys and missing records before using the result.

Turn your next data brief into a GPT request.

Download ChatMore for GPT chat and coding help on iPhone. Give it your source values and required fields, ask for structured text, then use the same syntax-and-fact checks before putting the result to work.

Download ChatMore

Common questions

Can I ask ChatMore for JSON on iPhone?

ChatMore offers GPT chat and coding help for structured-text requests. Supply the exact contract and facts, then check the returned text; a prompt alone is not a guarantee of valid JSON.

Does valid JSON mean the data is correct?

No. A result can parse while using wrong keys, quoted prices, missing items or incorrect values. Check syntax, schema and source facts separately.

Why use integer cents for this US menu?

The fictional contract explicitly requires cents: $3.00 becomes 300, $4.50 becomes 450 and $5.25 becomes 525. Use the units required by your own receiving system; do not silently change them.

Does the checker validate any JSON schema?

No. It parses JSON and checks this article’s exact three-item USD menu. It does not diagnose duplicate keys, verify live prices or certify another application’s requirements.

Sources and product details

ChatMore publishes this guide. Product features, availability, limits, and prices can change; consult the current official information before choosing a plan.