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) in
if error != nil {
print(error)
} else {
do {
let parsedData = try JSONSerialization.jsonObject(with: data!, options: []) as! [String:Any]
let currentConditions = parsedData["items"] as! [[String:Any]]
print(currentConditions)
let currentItem = parsedData["link"] as! String
print(currentItem)
} catch let error as NSError {
print(error)
}
}
}.resume()
solved Parsing JSON in Swfit 3.0 Cast NSArray to NSDictionary Error