title: Parsing twitter api JSON in Swift
body: <p>I am using Twitter-Kit/Fabric to get a response from the twitter api. It returns a JSON of the following format - <a href="https://dev.twitter.com/rest/reference/get/search/tweets" rel="nofollow">https://dev.twitter.com/rest/reference/get/search/tweets</a></p>
  
  <p>My query is - <code>https://api.twitter.com/1.1/search/tweets.json?q=""&amp;geocode=lat,long,radius&amp;count=15</code></p>
  
  <p>I need to extract the text and the coordinates from the JSON to plot those tweets on a map.</p>
  
  <p>What am I doing wrong with the following code - ?</p>
  
  <pre><code>Twitter.sharedInstance().APIClient.sendTwitterRequest(request) {
                      (response, data, connectionError) -&gt; Void in
          if (connectionError == nil) {
              var jsonError : NSError?
              let parsedResult  =
              NSJSONSerialization.JSONObjectWithData(data,
                              options: nil,
                              error: &amp;jsonError) as NSDictionary
              println(parsedResult)
              if let tweets = parsedResult["statuses"] as? NSDictionary {
                 for tweetsDict in tweets {
                     let title = tweetsDict["text"] as NSString
                     println("text: \(title)")
                     let coordinates = tweetsDict["coordinates"]
                     println("coordinates: \(coordinates)\n")
                 }
              }else {
                     println("Error: \(connectionError)")
               }
  
           }
  </code></pre>
  
  <p>My code runs till println(parsedResult) as I'm getting a valid response from the twitter api. However I'm having trouble extracting the tweet text from the JSON response.</p>