CSV column format
The DMS CSV format uses a flat set of columns that map to the nested JSON structure. Multi-value fields use| (pipe) as a separator within a single cell.
Multi-value fields
Three columns accept multiple values separated by|:
| Column | Example value | Maps to |
|---|---|---|
creator_name | Marie Consolée|Jean-Baptiste Mushimiyimana | creator[].name |
creator_role | narrator|interviewer | creator[].role |
subject | oral history|displacement|Congo | subject[] |
creator_name and creator_role columns are positional: the first name is paired with the first role, the second name with the second role, and so on.
Example rows from batch.csv
batch.csv
Importing CSV to JSON
batch.csv and writes a JSON array of DMS records.
By default the output file is named
<stem>_converted.json. For a file named batch.csv the output will be batch_converted.json. Use --output to choose a different path:--output, each row is written as an individual file named <type>_<id[:8]>.json:
id value are assigned a new UUID automatically.
Exporting JSON to CSV
.csv:
json2csv defaults to <input-stem>.csv. For story_b3e7c8a1.json the output will be story_b3e7c8a1.csv. Override with --output: