[Solved] Parsing JSON in Swfit 3.0 Cast NSArray to NSDictionary Error
You can use this : Since the data in items is array of dictionaries and link is not in internal array it is main dictionary so you can easily get this by passing link in as key. let link = “http://www.flickr.com/services/feeds/photos_public.gne?tags=swimming&format=json&nojsoncallback=1” let urlString = link let url = URL(string: urlString) URLSession.shared.dataTask(with:url!) { (data, response, error) … Read more