GUIDE深度 · Deep dive

JSON Array or Object?

CSV is a table, so it usually becomes an array of objects (one per row); a single config is more natural as an object. Decide the target shape before converting so downstream code does not need an extra unwrap.

更新 2026-10-31 · 公式可核验

Two shapes

Array of objects: [{"name":"A"},{"name":"B"}], good for tables and lists.

Single object: {"name":"A"}, good for configs and detail records.

Conversion notes

Empty headers become column_N; duplicate headers overwrite, so make them unique.

Numbers and booleans have types in JSON but are strings in CSV; mind the round trip.

FAQ

Can it convert to a single object?

This tool works with arrays; wrap a single object in an array first.

Do numbers become strings?

CSV output is text; convert types in code when needed.

Sources

Related calculators

CSV/JSON ConverterConvert CSV to a JSON array or JSON back to CSV, with quote, comma and tab support.

More guides

CSV Quoting RulesRead guide