Replace file path with it's content

I'm trying to read a csv and replace file path with it's content.

for example i have a csv file like this:
data1, data2, path1
data3, data4, path2

path1 data:- data5
path2 data:- data6

i want to create a document like
{
"Id":"1"
"field1":"data1"
"field2":"data2"
"field3":"data5"
},
..so on.

is there any way to do it with using ruby filter??

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