title: My swift app fail to convert NSData to Json
body: <p>I was trying to convert NSData to Json by doing this:</p>
  
  <pre><code>    let jdata = getJSON("https://api.myjson.com/bins/16j2i")
  
      do {
          let json = try NSJSONSerialization.JSONObjectWithData(jdata, options: []) as! [String: AnyObject]
          print(json)
      } catch {
          print("\(error)")
      }
  </code></pre>
  
  <p>This is the getJSON method</p>
  
  <pre><code>func getJSON(url:String) -&gt; NSData {
      return NSData(contentsOfURL: NSURL(string: url)!)!
  }
  </code></pre>
  
  <p>A error says that could not cast value of type '_NSCFArray' to 'NSDictionary'. Any ideas? Please</p>