Here is the code for the below Json output:
let params : [[String : AnyObject]] = [[\"name\" : \"action\", \"value\" : \"pay\" ],[\"name\" : \"cartJsonData\
A simple way to convert a JSON object to a String is: 1. First create a JSON subscript value e.g. jsonObject["fieldName"] 2. Use the '.stringValue' property to retrieve the actually String equivalence (jsonObject["fieldName"].stringValue)