Converting NSData from an Alamofire POST Request to String variables
<p>I'm trying to convert the NSData returned from an alamofire POST request to a string variables. When I try to perform this action using JSONSwifty, all I receive are nil values and errors.</p>

<p>I need to just get the user_id as a string value from the response.</p>

<pre><code>Alamofire.request(.POST, "http://api.trimitapp.co.uk/v1/user", parameters: ["data": parameter!])
            .validate(contentType: ["application/json"])
            .response{ (request, response, data, error) in

                print(request)
                print(response)
                print(data)
                print(error)
                print("\n\n")

                let info = JSON(data: data!)


                guard let items = info["user"]["user_id"].string else{
                    print("error")
                    return
                }
                print(items)
        }
    } catch{}
</code></pre>

<p>This is the NSData I receive from the POST Request:</p>

<pre><code>{
    "user": {
       "user_id": 64,
       "account": {
          "account_id": 92
       }
    }
}
</code></pre>

<p>I am using the Alamofire and SwiftyJSON frameworks.</p>