RowReady field notes
Convert CSV to JSON without losing leading zeros
Keep postal codes, product codes and identifiers as text.
A field containing 00142 might be a product code, not the number 142. Automatically inferring types during conversion can make an output look convenient while changing the meaning of the data. RowReady therefore converts every CSV value to a JSON string.
Start with the original export
If a spreadsheet has already changed 00142 into 142, a converter cannot know how many zeros were removed. Export from the original source if possible, or set identifier columns to text before entering values in the spreadsheet.
sku,postal_code,quantity
00142,02108,12
[
{"sku":"00142","postal_code":"02108","quantity":"12"}
]
Use deliberate types downstream
The quantity above is also a string. If your API requires a number, convert that field explicitly after checking its allowed format. This separates the mechanical file conversion from a decision about what each column means. Dates, booleans and empty cells deserve the same deliberate treatment.
Check your headers
The first row supplies JSON property names. Keep every header non-empty and unique. A column called id can coexist with one called ID, but that distinction may confuse a receiving system; use the spelling expected by your schema. RowReady keeps spaces and case in headers rather than silently renaming them.
Large numbers need special care
An account number can have more digits than a JavaScript number can represent precisely. CSV-to-JSON preserves it as text. When starting from JSON, represent long identifiers as quoted strings too. RowReady rejects unsafe integer values when exporting JSON to CSV, but it cannot restore digits that another application already rounded.
Before importing the output, compare a few records with the source: an identifier with zeros, a long identifier, an empty cell and a value containing punctuation. Those examples reveal more than a successful download alone.
Format reference: RFC 4180 CSV conventions.