Skip to content

[Feature Request] receiving data as object WITHOUT having header row #1089

@svenja-haas

Description

@svenja-haas

Hi! In my case, my CSV files don't have a header row, but still all lines have the same structure. I'd love to manually be able to set a header to receive my rows as objects instead of an array. Possible implelemtation:
Add array type to header config option. You could set it e.g. like this:

header: ["column1", "column2", "column3"]

And then you would receive results the same way as when there is a header row:

[
	{
		"Column 1": "foo",
		"Column 2": "bar",
		"Column 3": "foo1",
	},
	{
		"Column 1": "abc",
		"Column 2": "def",
		"Column 3": "abc1",
	}
]

Metadata

Metadata

Assignees

No one assigned

    Labels

    v6-todoThis issue should be handled in the v6 release

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions