Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
svenja-haas opened this issue Feb 21, 2025 · 0 comments
Open

Comments

@svenja-haas
Copy link

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",
	}
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant