title: How To Fetch and Parse JSON Using Swift 2 + XCode 7 + iOS 9
body: <p>Was looking for useful tutorials for networking with Swift 2 and iOS 9, but it seems that topic has no content online. I have watched the WWDC session <a href="https://developer.apple.com/videos/play/wwdc2015-711/" rel="nofollow">Networking with NSURLSession</a> But I couldn't adapt the new API of iOS9 to have an asynchronous way to fetch and parse JSON data. What I have tried:</p>
  
  <pre><code>    do {
          if let url = NSURL(string: "site/api.php?option=fetchOps"),
              let data = NSData(contentsOfURL: url),
              let jsonResult = try NSJSONSerialization.JSONObjectWithData(data, options: []) as? [[String:AnyObject]] {
  
          }
      } catch let error as NSError {
          print(error.description)
      }
  </code></pre>
  
  <p>Please share your experience with networking on iOS9 and Swift2, any best practices maybe a Singleton class for networking and parsing maybe an ORM ?</p>