title: JSON Seralization returns nil if I try to cast it as anything else
body: <p>Im having trouble parsing this json object. I'm able to parse it into Any. But if I try to cast it as an NSDictionary or anything it else it returns nil. Can anyone help me? Ive consulted several questions and they all give the same nil result. </p>
  
  <pre><code>    let task = URLSession.shared.dataTask(with: request) { data, response, error in
      if let reponse = response {
          print(reponse)
      }
      if let data = data {
          //print(data)
  
          do{
  
            //  let json = try JSONSerialization.jsonObject(with: data, options: [])
  
  
              let json = try JSONSerialization.jsonObject(with: data, options:.allowFragments)
  
                  // do stuff here
  
              //  accountJson = try JSONSerialization.jsonObject(with: data, options: .mutableContainers) as? NSDictionary
  
              print("\(json)") // This one prints .
  
              let accountJson = try JSONSerialization.jsonObject(with: data, options: .mutableContainers) as? NSDictionary
  
              print("trying to print accountjson")
              print("\(accountJson)") // this one doesnt. 
  
  
  
  
          } catch {
              print(error)
          }
  
      }
  
  }
  task.resume()
  </code></pre>
  
  <p>The first print statement works and results in the following code in the terminal. </p>
  
  <pre><code>(
      {
      "__v" = 0;
      "_id" = 59cba54406e2661530c1aa6e;
      pass = ra;
      type = ra;
      username = NikRa;
  }
  )
  </code></pre>