Support Questions
Find answers, ask questions, and share your expertise

Extract a text from Json

Solved Go to solution

Extract a text from Json

Rising Star

Hi,

I am using the attached flattened json message and i would like to extract payload attribute in order to decode it. I use the EvaluateJsonFormat with flowfile-attribute destination and added payload property with $.payload but it doesn't just extract only payload and it returns all the Json message.

Any thoughts what i am doing wrong?

Thanks

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted

Re: Extract a text from Json

Super Guru
@Sanaz Janbakhsh

i tried with your json message and eval json path processor with

payload property as $.payload 

processor working as expected..

42581-eval-json.png

Output:-

42582-op.png

Can you share screenshots about your processors configurations,input to processor and flow, that would be great help to find root cause of your issue.

View solution in original post

2 REPLIES 2
Highlighted

Re: Extract a text from Json

Super Guru
@Sanaz Janbakhsh

i tried with your json message and eval json path processor with

payload property as $.payload 

processor working as expected..

42581-eval-json.png

Output:-

42582-op.png

Can you share screenshots about your processors configurations,input to processor and flow, that would be great help to find root cause of your issue.

View solution in original post

Highlighted

Re: Extract a text from Json

Rising Star

Awesome. Thanks Shu