-
Notifications
You must be signed in to change notification settings - Fork 0
Description
This might not work for nested objects or lists.
Commandline flags must be used to choose between rows-first and columns-first serialization.
When converting from CSV rows-first would serialize to a list of rows at the root level containing each column as an object. This probably only works with a valid column header. Without a header, a row can only be serialized as a list.
Columns-first would serialize to an object at the root level containing where each field corresponds to a column. Each column would be serialized as a list. This also requires a valid column header.
When converting to CSV the root level object keys would be used as a column header.
A list at the root level would be converted into rows. For this to work, all list items must have the same structure. This might not be practical at all.
New commandline options:
--rows-firstor--by-row--columns-firstor--by-column--delimiterif it cannot be detected automatically
When selecting input/output formats is possible (see #3), it might be a good idea to only allow CSV as an input format.