I\'ve followed several tutorials on this, and as far as I can tell what I\'m doing should be working. I have the following json response from an api call
{
What library are you using for handle json? If swift json you can do something like
res["id"]?.string
If you don't say anything on the type of "res" we can't answer you.
I think you want something like this:
ApiConnector.sharedInstance.login(emailText.text!, password: passwordText.text!) { (res) in
if let id = res["Id"].string {
// Do something.
}
}