Hi
I have a flow file with huge string content and I want to create a JSON and add this string to the JSON as a value with a static key.
Example
Flow file string content: "Example string"
Needed output :{"Static key":"Example string"}
I tried to add the string content to the flow file attribute using ExtractText and use attribute to JSON processor to generate the needed output but I have 2 issues with this approach:-
1- The string content size is not under my control and I dont know how much I need to configure the Maximum Buffer Size and Maximum Capture Group Length.
2- Adding the content to the flow file attribute will duplicate the flow file size and this will impact the performance.
3- Finally I feel it is a workaround solution :))
Is there any other way to solve this issue?