Skip to content

CSVJSON vs ConvertCSV for duplicate IDs

With a repeated ID in the same four-row CSV, both tools produced three JSON keys. CSVJSON kept three records in Hash output. ConvertCSV's keyed output kept all four by grouping records that shared a key.

Count the records inside each key

The two fictional permit files differ in one cell. The last row uses 0102 in the original and 0007 in the copy. The first row already uses 0007. Another row uses the distinct ID 7.

Results from two CSV files with four records each
Export and inputCSVJSONConvertCSV
JSON array, original4 records4 records
Keyed JSON, original4 keys, 4 records4 keys, 4 records
JSON array, duplicate ID4 records4 records
Keyed JSON, duplicate ID3 keys, 3 records3 keys, 4 records

For the second file, both keyed objects contain 0007, 7, and 0088. CSVJSON keeps the last 0007 record, for Studio. ConvertCSV puts both records under 0007 in an array, preserving the first record from Harbor, east and the last record from Studio.

Repeat the conversion in each browser tool

  1. Open the original CSV in a text editor and copy its contents.
  2. Paste into CSVJSON. Read the JSON array. Open the parse settings and turn on Hash output. Check the number of top-level keys and the value under 0007.
  3. Paste the same CSV into ConvertCSV. Use CSV To JSON for the array and CSV To Keyed JSON for the object. Keep the key field at 1, the permit ID column.
  4. Repeat both conversions using the duplicate-ID CSV. Count each object as one record and count each entry inside an array separately.

Spreadsheet to App ran the tests with Codex on December 5, 2026. The public tools opened without an account. We read the generated JSON in CloudBrowser at 390 pixels and in Chrome at 390 and 1280 pixels. This test covers these files and output settings.

Check the ID type in plain JSON arrays

Both default arrays returned four rows. CSVJSON returned "0007" as a string and 7 as a number. ConvertCSV returned the number 7 for both IDs. The keyed modes preserved distinct property names for 0007 and 7 in these tests.

Both tools preserved all four original IDs as strings in the array with a settings change. In CSVJSON, turn off Parse numbers. In ConvertCSV, enable Force Wrap numeric values in double quotes and enter 1 for the permit ID field.

If the destination expects one record per ID, check the source for duplicates before using keyed output. If IDs can repeat, check that the receiver accepts arrays under each key or keep a plain array of records. Compare the exact ID values as well as the row totals.

Compare filtered CSV downloads using the original sample