Json data to label Xcode : I have been struggling with this for a while and just need some quick help with this basic question.


        
        let url = URL(string: "https://api.coindesk.com/v1/bpi/currentprice.json")
        let task = URLSession.shared.dataTask(with: url!) { (data, response, error) in
            if error != nil
            {
                print ("Error!")
            }
            else
            {
                if let content = data
                {
                    do
                    {
                        // Array
                        let myJson = try JSONSerialization.jsonObject(with: content, options: JSONSerialization.ReadingOptions.mutableContainers) as AnyObject
                        if let rates = myJson["bpi"] as? NSDictionary
                        {
                            if let currency = rates["USD"] as NSDictionary
                            {
                                if let money = currency["rate"]
                                {
                                    print(money)

                                }
                            }
                        }
                    }
                    catch
                    {
                        
                    }
                }
            }
        }
        task.resume()
        
        self.label.text = (self.money as String?)
       


I am trying to pass the numerical value for "money" to a label in my view controller. Any help would be greatly appreciated!