How to convert single child xml element to Json Array
问题 I am using WSO2 ESB and trying to convert my XML payload to Json. <property name="messageType" value="application/json" scope="axis2"/> The above property mediator convert my xml to json and it all works fine. The issue is with the child nodes in my XML payload. When the xml is <users> <user>user1</user> <user>user2</user> </users> it gets converted to "users": { "user": [ "user1", "user2" ] } so my rest full endpoint recieving the json payload which is expecting a list 'user' works fine. but