Hi Malaka, I have tried with your solution but it didn't work.
following is my javascript code: var tagElement=<tags><?xml-multiple?><jsonElement>TestTag</jsonElement></tags>; payloadXML.tags=tagElement; This will create JSON payload as : {"tags":"TestTag"} But the requirement is: {"tags":["TestTag"]} I have enabled following message builder/formatter as well, <messageFormatter contentType="application/json" class="org.apache.synapse.commons.json.JsonFormatter"/> <messageBuilder contentType="application/json" class="org.apache.synapse.commons.json.JsonBuilder"/> Regards, Janaka -- View this message in context: http://wso2-oxygen-tank.10903.n7.nabble.com/ESB-Problems-sending-numeric-keys-in-JSON-Payloads-tp99789p100001.html Sent from the WSO2 Development mailing list archive at Nabble.com. _______________________________________________ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev