duolanierduone
duolanierduone

Reputation: 157

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?

Upvotes: 0

Views: 889

Answers (1)

Vikramsinh Shinde
Vikramsinh Shinde

Reputation: 2878

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

Upvotes: 2

Related Questions