Convert multiline csv data to single line during filter

HI All

Currently after input i get data in this format

{
"csvdata" : "col1","col2","col3"
}
{
"csvdata" : "col1row1","col2row1","col3row1"
}
{
"csvdata" : "col1row2","col2row2","col3row2"
}

How should i club this mutiline event to a single line at filter level?
What filter i use it to make it work?
My expected output is

{
"csvdata": "col1","col2","col3"
"col1row1","col2row1","col3row1"
"col1row2","col2row2","col3row2"
}

Thanks

That is not valid JSON.

Hi @Badger

I mean to say this way, my expectation is this format of json, please consider this

{
" csvdata ": "col1,col2,col3\n
col1row1,col2row1,col3row1\n
col1row2,col2row2,col3row2"
}

Regards,
Ritesh

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.