title: Swift get values from JSON
body: <p>I'm trying to parse the JSON response below using the following code but can't seem to get it to work, how would I do this?  Im trying to get "<strong>user_guid</strong>" and all the "<strong>entity_guid</strong>" in images.</p>
  
  <p>SWIFT</p>
  
  <pre><code>        do {
              var entity_guid : Int = 0
              var user_guid : Int = 0
              let jsonResult = try JSONSerialization.jsonObject(with: data, options: JSONSerialization.ReadingOptions.mutableContainers) as? NSDictionary
  
              // Parse JSON data
              let jsonP = jsonResult?["result"] as! [AnyObject]
              for jsonL in jsonP {
                  user_guid = jsonL["user_guid"] as! Int
                  entity_guid = jsonL["entity_guid"] as! Int
              }
  
  
          } catch {
  
          }
  </code></pre>
  
  <p>JSON</p>
  
  <pre><code>{
   "status":0,
   "result":{
    "user_guid":139219,
    "images":[
     {
      "entity_guid":572356
     },
     {
      "entity_guid":572354
     },
     {
      "entity_guid":572352
     }
  ]
  }
  }
  </code></pre>