json - Modifying a payload in Mule -
i've json response based on webservice request.
[ { "type": " --t::00" }, { "address": "10049 college way n", "longitude": "-122.335022", "latitude": "47.701756", "incident_number": "f110104009", "type": "aid response", "report_location": { "needs_recoding": false, "longitude": "-122.335022", "latitude": "47.701756" } }, { "address": "5929 beach dr sw", "longitude": "-122.397816", "latitude": "47.550431", "incident_number": "f110104008", "type": "aid response", "report_location": { "needs_recoding": false, "longitude": "-122.397816", "latitude": "47.550431" } }
is there way manipulate payload remove header { "type": " --t::00" } or add together in footer. utilize json object transformer , added java.util.list. i've seen posts of using groovy transformer add together message how removing elements such header?
thanks!
what can :- 1. extract elements value json request using <json:json-to-object-transformer/>
, store them in variables. 2. seek build own json request using mule expression transformer , assign values variable. thus, can create dynamic json require..
you can check here how build dynamic json using expression transformer :- how transform json-to-json document in mule esb
json mule esb payload transformer
No comments:
Post a Comment