title: Trying to read from a JSON file in swift 2 overload error showing up
body: <p>Hi so here's the boilerplate code for parsing JSON files in Swift 2. Ive used this before and it works but for some reason its broken in the latest version of Xcode 7.1 and Swift 2. Any thoughts about this guys? The error is "Argument labels '(contentsOfFile:, options:, error:)' do not match any available overloads"</p>
  
  <pre><code>import Foundation
  
  extension Dictionary {
      static func loadJSONFromBundle(filename: String) -&gt; Dictionary&lt;String, AnyObject&gt;? {
          if let path = NSBundle.mainBundle().pathForResource(filename, ofType: "json") {
  
              var error: NSError?
              let data = NSData(contentsOfFile: path, options: NSDataReadingOptions, error: &amp;error)
              if let data = data {
                  let dictionary: AnyObject? = NSJSONSerialization.JSONObjectWithData(data,
                      options: NSJSONReadingOptions(), error: &amp;error)
                  if let dictionary = dictionary as? Dictionary&lt;String, AnyObject&gt; {
                      return dictionary
                  } else {
                      print("Level file '\(filename)' is not valid JSON: \(error!)")
                      return nil
                  }
              } else {
                  print("Could not load level file: \(filename), error: \(error!)")
                  return nil
              }
          } else {
              print("Could not find level file: \(filename)")
              return nil
          }
      }
  }
  </code></pre>