title: How to get all keys and values into separate String arrays from NSDictionary in Swift?
body: <pre><code>    let urlAsString = "https://drive.google.com/uc?export=download&amp;id=0B2bvUUCDODywWTV2Q2IwVjFaLW8"
      let url = NSURL(string: urlAsString)!
      let urlSession = NSURLSession.sharedSession()
  
      let jsonQuery = urlSession.dataTaskWithURL(url, completionHandler: { data, response, error -&gt; Void in
          do {
              if let jsonDate = data, let jsonResult = try NSJSONSerialization.JSONObjectWithData(jsonDate, options: []) as? NSDictionary {
  
                  print(jsonResult)
  
              }
          } catch let error as NSError {
              print(error)
          }
  
  
      })
      jsonQuery.resume()
  </code></pre>
  
  <p>Okay so here i am receiving data from online json then storing it as NSDictionary in jsonresult . I need to get all keys and values as into two separate arrays ?</p>
  
  <p>Basically i want this </p>
  
  <p><strong>jsonresult.allkeys --> String array</strong><br>
  <strong>jsonresult.allvalues --> String array</strong></p>