title: Parsing JSON from NSData with Swift
body: <p>I want to parse data in array but I can't. Please let me know if you have any suggestion. Here is my data sample:</p>
  
  <pre><code>[{"ListSequence":1,"StarTime":"15.06.2016 09:00","WorkTime":15,"EndTime":"15.06.2016 09:15","Appointment":"","CustomerId":"12345","Name":"","Address":"bla bla"}, {"ListSequence":2,"StarTime":"15.06.2016 09:20","WorkTime":15,"EndTime":"15.06.2016 09:35","Appointment":"","CustomerId":"54321","Name":"","Address":"bla bla"}]
  </code></pre>
  
  <p>This is my function:</p>
  
  <pre><code>func parserJSON(data: NSData){
      var names = [String]()
      do {
          if let ipString = NSString(data:data, encoding: NSUTF8StringEncoding) {
              let jsonDictionary = try NSJSONSerialization.JSONObjectWithData(data, options: NSJSONReadingOptions.MutableContainers) as! NSDictionary
  
              if let sequences = jsonDictionary["ListSequence"] as? [[String: AnyObject]] {
                  for sequence in sequences {
                      if let name = jsonDictionary["Name"] as? String{
                          names.append(name)
                      }
                  }
              }
          }
      } catch {
          ///alert
      }
  }
  </code></pre>