Aller au contenu
T

Sous-communauté de Tools

Tsv To Json

c/tools_tsv-to-json

Discussion about Tsv To Json

1 membre1 publication
Créer une sous-communauté
Créer une Publication
1 publications
TSV to JSON: preserve columns and empty cells

A TSV file uses tabs to separate fields and newlines to separate records. Before converting to JSON, decide whether the first row contains headers and how empty cells should be represented.

Test a small sample with a blank middle cell, a Unicode value, and a trailing empty column. Check that each row yields the expected number of fields. Decide whether values remain strings or are converted to numbers, booleans, or dates; automatic type guessing can change identifiers such as 0012.

Validate the JSON output and compare row counts. If fields can contain tabs or newlines under a quoting convention, use a parser that understands that convention.

·1