title: Reading local JSON file with SwiftyJSON
body: <p>and i wanted to read my "data.json" that is located in "Supporting Files" Folder.<br>
  But i am confused, because a lot of the Tutorials are either swift 1.0 or don't show how it is done with a local file.</p>
  
  <p>Can somebody help me ? </p>
  
  <p>This is how far i have come : </p>
  
  <pre><code>    if let path = NSBundle.mainBundle().pathForResource("data", ofType: "json") {
          if let data = NSData(contentsOfMappedFile: path) {
              let json = JSON(data: data, options: NSJSONReadingOptions.AllowFragments, error: nil)
              println("jsonData:\(json)")
          }
      }
  </code></pre>
  
  <p>i also get a warning that "contentsOfMappedFile" is deprecated.</p>
  
  <p>i tried for 20mins, couldn't get it to work :(</p>