title: Can't get value from Google-Books JSON API
body: <p>I'm using a bar code scanner to get data on a scanned book using the google books api. I successfully call the API and get a JSON object back.</p>
  
  <p>I'm trying to get the book title which follows the path <code>items.volumeInfo.title</code>. </p>
  
  <p>When I call valueForPath on the JSON object returned by the API and attempt to print it (the title), I end up printing: </p>
  
  <blockquote>
    <p>Optional((
        "A Dance with Dragons"
    ))</p>
  </blockquote>
  
  <p>I can't seem to figure out how to actually get the string out of the printed optional. I tried <code>as! String</code> and <code>jsonResult.valueForKeyPath("items.volumeInfo.title")!</code>, but the first simply complained to me and the second only removed the optional and outside set of parentheses. </p>
  
  <pre><code>func getBookInfo(isbn: String) {
          var url: String = "https://www.googleapis.com/books/v1/volumes?q=isbn:" + isbn;
          var request: NSMutableURLRequest = NSMutableURLRequest()
          request.URL = NSURL(string: url)
          request.HTTPMethod = "GET"
  
          NSURLConnection.sendAsynchronousRequest(request, queue: NSOperationQueue(), completionHandler:{ (response:NSURLResponse!, data: NSData!, error: NSError!) -&gt; Void in
              var error: AutoreleasingUnsafeMutablePointer&lt;NSError?&gt; = nil
              let jsonResult: NSDictionary! = NSJSONSerialization.JSONObjectWithData(data, options:NSJSONReadingOptions.MutableContainers, error: error) as? NSDictionary
  
              if (jsonResult != nil) {
  
                  println(jsonResult.valueForKeyPath("items.volumeInfo.title"))
                  //self.json.setValue(jsonResult.valueForKeyPath("items.volumeInfo.title")!, forKey: "title")
  
              } else {
                  GlobalConstants.AlertMessage.displayAlertMessage("Error fetching data from barcode, please try again.", view: self)
              }
  
  
          })
      }
  </code></pre>