@MrBurns
You want to take the URL that written to the FlowFile's attribute "http.request.uri" and generate a Json, correct?
Where do you want to write that JSON (a new FlowFile attribute? Content of the FlowFile?)?
There are multiple ways to handle this.
If you just want to write JSON to a new FlowFile Attribute, you could use the "Advanced" UI of the UpdateAttribute by setting up a rule for each url type.
If you want to write to the content of a FlowFile, you could follow the above UpdateAttribute with a replaceText processor that does an "always replace" to write the json from the attribute to the content of the FlowFile.
another option here is to use a RouteOnAttribute to route each url type to a unique ReplaceText to handle the specific url type.
I like first option since you can easily add new rules to the UpdateAttribute if any additional URL types are introduced without needing to modify the rest of your dataflow.
If you found that the provided solution(s) assisted you with your query, please take a moment to login and click Accept as Solution below each response that helped.
Thank you,
Matt