let ur = URL(string:"http://demo.cogzidel.com/dropinn416/mobile/search/discover?common_currency=INR&start=1") let task = URLSession.shared.dataTask(with: ur!) { (data, response, error) in if error != nil { print("Error") } else { if let contant=data { do { let dictArray = try JSONSerialization.jsonObject(with: contant, options: JSONSerialization.ReadingOptions.mutableContainers) as? [Dictionary<String, AnyObject> ]
In JavaScript we can use JSON.stringify to convert an java script array into a JSON formatted string
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)