Closed kkorus closed 2 years ago
Hi @kkorus ,
The reason you are getting that output is because after using flatten
, there is no tags
field anymore.
Try removing the fields option. The actual result is (notice that there is no tags
column)
"name","tags.0","tags.1"
"test name","tags1","tags2"
For something close to your expected output, as you figured out, you don't use any transform and you get:
"name","tags"
"test name","[""tags1"",""tags2""]"
If you want to remove the brackets or inner quotes you need to use a custom selector. Or using v6 (only in pre-release now)
Closing since help was provided and there was no answer.
My data in json:
my code:
expected csv output:
current result:
So tags are missing, but when I remove
transforms: [transforms.flatten({ arrays: true })],
I will get:but I want to array value to be comma-separated.