Search code examples
apache-nifi

How extract all the json content as a attribute in NiFi


I have some flowfiles and their contents are json like this:

{"Message": "...", "Id":"122", "Size":"123"}

I would like to extract this whole json as an attribute in flowfile.

How to achieve it?


Solution

  • Use ExtractText processor and add a new property as ff_content = (.*)