30 chars · 2 lines
30 chars · 2 lines
30 chars · 2 lines
30 chars · 2 lines
CSV whitespace-header troubleshooting
The second header cell contains spaces, but CSV to JSON trims header text before using it as an object key. After trimming, that column has no name and the converter stops rather than inventing one. This tool is free to use. No account or payment is required.
Last updated
Keeping a property name made only of spaces would create confusing JSON and make downstream access error-prone. VetaTool trims headers and requires a real name for every column.
Replace the spaces-only second heading with the real column name role.
name, ,active
Ada,admin,truename,role,active
Ada,admin,trueCommon questions
The converter trims header text before using it as a JSON object key.
Not necessarily; this is a CSV-to-JSON safety requirement rather than a general CSV syntax rule.
It removes surrounding whitespace, helping avoid accidental keys such as " role" and "role ".
Debugging a specific CSV issue? Browse CSV troubleshooting.