title: Parse JSON Data Array with Swift 4
body: <p>I am using the following code.  It only works if the JSON data does not start with a '[' character.  It works fine for JSON data starting with a '{' character.  There is a similar question here: <a href="https://stackoverflow.com/questions/26840203/parsing-json-array-in-swift">Parsing JSON array in swift</a> but most of the methods are deprecated and I was unable to get the code to work.  Here is the JSON call I am using:</p>
  
  <pre><code>guard let json = (try? JSONSerialization.jsonObject(with: data, options: JSONSerialization.ReadingOptions.mutableContainers)) as? [String: Any]        else {
      print("Error: Could not parse JSON!!!")
      return
  }
  </code></pre>
  
  <p>I tried removing all options and using allowFragments and mutableLeaves among others.  From what I understand mutableContainers is a default setting but I have been trying whatever I can.  Any help or advice would be much appreciated.  </p>
  
  <p>Here is a sample of the JSON data I am working with:</p>
  
  <p>{ "CREATED_BY" = "Domain\USER"; "CREATED_DATE" = "2011-09-30T15:00:13"; STATUS = U; "EMPLOYEE_NUMBER" = 039000292; "UPDATED_BY" = "Domain\USER""; "UPDATED_DATE" = "2014-08-02T13:22:01"; }</p>