31 chars · 3 lines
31 chars · 3 lines
31 chars · 3 lines
31 chars · 3 lines
CSV identifier preservation
Codes such as 00123 lose information if they are coerced to numbers. Because VetaTool keeps CSV cells as strings, the leading zeros survive unchanged in the generated JSON. This tool is free to use. No account or payment is required.
Last updated
Turning 00123 into the number 123 changes the source value. String-preserving conversion avoids that loss without requiring the converter to guess which digit-only columns are IDs.
The output below is the actual JSON produced by the same CSV to JSON mode for the preloaded source.
code,name
00123,Ada
00007,Linus[
{
"code": "00123",
"name": "Ada"
},
{
"code": "00007",
"name": "Linus"
}
]Common questions
Yes. It is emitted as the JSON string "00123".
The converter cannot know whether the field is a quantity or an identifier, and numeric coercion would remove information.
Not necessarily. Convert known numeric columns explicitly after parsing when your schema requires numbers.
Debugging a specific CSV issue? Browse CSV troubleshooting.