I am adding another solution in which returnclass = "java.util.Map" works, please take a look at the code where you can put the same JSON into the body using the http method as POST when sending data from Fiddler or POST people - customer.
Here in this thread, I directly assign an expression to Splitter instead of using Expression Transformer. I use Any Point Studio to make it work.
<flow name="mule-splitterFlow2" doc:name="mule-splitterFlow2"> <http:inbound-endpoint exchange-pattern="request-response" host="localhost" port="8081" doc:name="HTTP" path="splitterjson"/> <json:json-to-object-transformer returnClass="java.util.Map" doc:name="JSON to Object"/> <splitter expression="#[message.payload.locations.record]" doc:name="Splitter"> </splitter> <logger level="INFO" doc:name="Logger" message="#[message.payload]"/> </flow>
Utsav source share