Extract whole json flowfilecontent(small) to single attribute
Hi All,
I have nifi flow fthat fetches one json file and using the extractText processor, i want to store entire flowfile content(assume small json file) into one flowfile attribute. But (.*) is not extracting whole json and instead extracting only { . Please help with Java regular expression to extract full json afnd also share if any Java regular expression documentation which i can refer for Nifi extracttext processor.



I having json file which contains format like
{
"filename1":"insert into filename1",
"filename2":"insert into filename2",
"filename3":"insert into filename3"
}
I will retrieve the filenames in generic way/dynamic using JsonPath(${filename}) in updateattribute .
Please assist to extract whole json content into one flow file attribute .
Thanks

