Call this function with parameter argument as array with type 'any'. It will return you json string. Json string is used to submit array in web service call as request input parameter in Swift.
//-----------------------
let array = [["one" : 1], ["two" : 2], ["three" ...