Below is my sample XML response
<DATA><![CDATA[
<RESULT>0</RESULT>
<Addresses>
<Address>
...............
</Address>
<Address>
...............
</Address>
<Address>
...............
</Address>
</Addresses>
]]></DATA>
I want to transform this into a JSON array of objects. I used the below code, but it is just returning the CDATA string, not in JSON format
%dw 2.0
output application/json encoding="UTF-8"
---
payload
I'm using dataweave 2.0 in Mule 4