23 chars · 2 lines
23 chars · 2 lines
23 chars · 2 lines
23 chars · 2 lines
CSV header normalization behavior
The source headings contain spaces around name and role. Before creating JSON keys, VetaTool trims only the surrounding whitespace, producing predictable keys without changing the data cells. This tool is free to use. No account or payment is required.
Last updated
Keys such as " role" and "role " are difficult to distinguish in code and data reviews. Normalizing surrounding whitespace makes generated JSON easier to use, while internal spaces such as "display name" remain part of the key.
The output below is the actual JSON produced by the same CSV to JSON mode for the preloaded source.
name , role
Ada,admin[
{
"name": "Ada",
"role": "admin"
}
]Common questions
Yes. Surrounding whitespace is removed before the headers become JSON keys.
No. Internal spaces remain; only leading and trailing whitespace is trimmed.
The converter rejects the duplicate normalized key instead of overwriting one column.
Debugging a specific CSV issue? Browse CSV troubleshooting.