title: Example handling JSON with SwiftyJSON
body: <p>I would like to handle json with SwiftJSON, but I stacked.
  Does anyone show me example code?</p>
  
  <p>I tried to use this library.
  <a href="https://github.com/SwiftyJSON/SwiftyJSON" rel="noreferrer">https://github.com/SwiftyJSON/SwiftyJSON</a></p>
  
  <p>Although I placed SwiftyJSON.swift in the same project, I have error "No such module "SwiftyJSON""
  So correct my code or show me example code handling json from web with swiftyJSON lib.</p>
  
  <p>Here is my code:</p>
  
  <pre><code>import UIKit
  import SwiftyJSON // No such module "SwiftyJSON"
  
  class ViewController: UIViewController {
  
      override func viewDidLoad() {
          super.viewDidLoad()
          // Do any additional setup after loading the view, typically from a nib.
          let url = NSURL(string: "http://express.heartrails.com/api/json?method=getPrefectures")
  
          var request = NSURLRequest(URL: url!)
          var data = NSURLConnection.sendSynchronousRequest(request, returningResponse: nil, error: nil)
  
          var json = NSJSONSerialization.JSONObjectWithData(data!, options: nil, error: nil) as NSDictionary
  
          var hoge = JSON(data)
      }
  
      override func didReceiveMemoryWarning() {
          super.didReceiveMemoryWarning()
          // Dispose of any resources that can be recreated.
      }
  }
  </code></pre>
  
  <p>Here is my Xcode capture</p>
  
  <p><img src="https://i.stack.imgur.com/EDBsw.png" alt="Screenshot"></p>