Support Questions

Find answers, ask questions, and share your expertise

Working with FlowFile Content in NiFi

avatar
New Contributor

I have a simple nifi flow with HttpRecieveHeandler => *Router* => HttpResponseHeandler

with GET queryes for routing i use RouteOnAttribute, but for POST it didn't work couse RouteOnContent transform HTTP BODY to string. How should i work with JSON in FlowFileContent?

1 ACCEPTED SOLUTION

avatar
Master Guru

You can extract values from JSON content into attributes using EvaluateJsonPath, then you can use RouteOnAttribute to do routing.

View solution in original post

1 REPLY 1

avatar
Master Guru

You can extract values from JSON content into attributes using EvaluateJsonPath, then you can use RouteOnAttribute to do routing.