DOABLEBYTE / WORKED EXAMPLE

Check a CSV before converting it to JSON

A practical, repeatable workflow for avoiding a neat-looking output that quietly duplicates records or changes identifiers.

Original fictional example · DoableByte · 2 December 2026 · Tested with our browser-based tools

CSV represents tabular data; JSON represents structured values. Converting between them changes the format, but it does not establish that a row is correct. Here is a small example that you can repeat without uploading anything or using AI.

1. Start with three fictional records

The second row has an unknown pack count. The last row repeats the first exactly. The quoted product name contains a comma, and both identifiers contain leading zeros.

id,product,pack
001,"Tea, green",2
002,Soap,
001,"Tea, green",2

Download the example CSV (three fictional records, no account required), or copy the text above. Open the CSV quality checker, paste the example and click Check CSV.

If you open it in a spreadsheet, import the ID column as text so it does not silently strip leading zeros.

2. Understand the quality report

The checker calculates these results from the example above. Record numbers start at 2 because the header is record 1.

Before and after removing the exact duplicate
CheckBeforeAfter
Data records32
Exact duplicates10
Empty fields11
Wrong-width records00

The blank field is not proof of an error: the pack count is simply unknown. Remove the duplicate only when you have established that it is unintended; identical records can sometimes represent separate real events.

3. Convert the corrected CSV

Here we deliberately remove the exact duplicate in the fictional example and leave the unknown value empty.

id,product,pack
001,"Tea, green",2
002,Soap,

Paste the corrected example into the CSV to JSON converter. It returns this output:

[
  {
    "id": "001",
    "product": "Tea, green",
    "pack": "2"
  },
  {
    "id": "002",
    "product": "Soap",
    "pack": ""
  }
]

Notice that 001 is the string "001", not the number 1, and the missing pack count is an empty string rather than an invented number. The tool intentionally does not infer data types.

4. Decide whether automation is worthwhile

A deterministic format conversion is repeatable; interpreting ambiguous product names is a different task. Measure real manual and automated time, including corrections, before deciding whether to automate. Our time savings calculator helps estimate payback from your own measurements.

This is a synthetic worked example, not a benchmark of AI accuracy or savings. A structurally valid CSV can still contain incorrect information, and the checker cannot establish real-world correctness.

Try the CSV checker