title: How to make a json call with objective C
body: <p>I am implementing a calling with json with swift but I need this with Objective C . Can any one help me to convert this code to Objective C. It belongs to a project which it can convert currencies . I really appreciate any kinds of help. my problem is that how to do json calling with objective C . I tried some of swift to objective C converter but none of them works fine. Thats why I asked my question here,</p>
  
  <pre><code>   let url = URL(string: "https://something")
      let task = URLSession.shared.dataTask(with: url!) { (data, response, error) in            
          if (error != nil)
          {
              print("ERROR")
          }
          else
          {
              if let content = data
              {
                  do
                  {
                      let myJson = try JSONSerialization.jsonObject(with: content, options: JSONSerialization.ReadingOptions.mutableContainers) as AnyObject
                      if let rates = myJson["rates"] as? NSDictionary
                      {
                          for (key, value) in rates
                          {
                              self.myCurrency.append((key as! String))
                              self.myValues.append((value as? Double)!)                              
                          }
                      }
                  }
                  catch
                  {
                  }                    
              }                
          }
          self.pickerView.reloadAllComponents()
          //myPicker.selectRow(row, inComponent: 0, animated: true)
          self.pickerView.selectRow(20, inComponent: 0, animated: false)
      }
      task.resume()        
  }
  </code></pre>