CSV
A CSV file has a line per record, its fields split by a delimiter, usually with a header line naming them:
Payment ID,Date,Amount,Sort code
P-1,2026-03-02,100.5,040004
Tell Crosswalk how to read it
To read a file, Crosswalk needs its schema: the name and type of each field, and which ones are lists. The builder below makes one from an example, and shows the JSON it reads as you go. When it reads the example the way you want, the Schema tab has the schema to use in a map.
The builder below starts with a file of payments. What it reads is underneath, and changes as you go.
- Click a field on any line to select its column, then name it and set its type in the bar under the lines. A column of numbers with leading zeros, such as a sort code, starts as text, so the zeros aren't lost.
- Check What it reads: that's the JSON a map gets.
- To do the same for your own file, open Sample and paste a few lines of it.
Sample 3 lines, CSV: Payment ID,Date,Amount,Sort code
Paste a few lines of your own file to make a schema for it; the layout is worked out from what you paste.
A file with several kinds of line, each starting with a tag, such as a header, details and a trailer, works too: see several kinds of line. Every setting is in the flat files reference.