Skip to content

add support for CSV #6

@modul

Description

@modul

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-first or --by-row
  • --columns-first or --by-column
  • --delimiter if 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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions