func arrayToJson(arr:NSArray) -> String {
let jsonData: NSData = try! NSJSONSerialization.dataWithJSONObject(arr, options: NSJSONWritingOptions.PrettyPrinted)
let str:String = String(data: jsonData, encoding: NSUTF8StringEncoding)!
return str
}
func arrayToJson(arr:NSArray) -> String {
let jsonData: NSData = try! NSJSONSerialization.dataWithJSONObject(arr, options: NSJSONWritingOptions.PrettyPrinted)
let str:String = String(data: jsonData, encoding: NSUTF8StringEncoding)!
return str
}