Javascript – Single object not generating array in wso2
I want to transfrom the xml to json while an element "Coll" in the incoming xml will be an array if single object received. Result.Coll needs to be an array object rest will be same. <Result xmlns="http://ws.apache.org/ns/synapse"> <ban:DOB xmlns:ban="http://TCS.BANCS.Adapter/BANCSSchema">22101991</ban:DOB> <ban:TDNPFlag…