nifi-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From James Wing <>
Subject Re: Parsing stringified json content
Date Mon, 09 Oct 2017 03:31:25 GMT

You can use the EvaluateJsonPath processor to extract the SNS message body
using a JSON path of "$.Message".  As part of evaluating the path, it will
un-escape the stringified content of Message and return the enclosed JSON

If you want this to be in a new, separate flowfile from the original SNS
body, I recommend duplicating the flowfile upstream of EvaluateJsonPath.
It is easy to update the flowfile content to the "Message" content with
EvaluateJsonPath by setting the Destination property to flowfile-content.



On Sun, Oct 8, 2017 at 3:38 PM, Eric Chaves <> wrote:

> Hi, I'm writing a flow to handle SNS notification messages received
> through HTTP. Those messages are JSON content whose Message attribute is an
> stringified JSON text.
> How can I parse this content into a new flow file?
> Thanks in advance,
> Eric

View raw message