title: Swift : JSONSerialization.jsonObject not working for json into json
body: <p>I am using this code for geting json data from url:</p>
  
  <pre><code>URLSession.shared.dataTask(with:request, completionHandler: { (data, response, error) in
   guard let data = data, error == nil else { return }
  
   do {           
     let json = try JSONSerialization.jsonObject(with: data, options: .allowFragments) as! [String:String]
     completion(json)              
   } catch _ as NSError {
     completion(nil)
   }
  }).resume()
  </code></pre>
  
  <p>If my json is <code>{"error":"true","message":"no"}</code> it works fine</p>
  
  <p>But if i use json into json, it not works :</p>
  
  <pre><code>{"error":"true","message":"no","state":{"id":"1","name":"empty"}}
  </code></pre>