How can I extract data from alamofire in Swift?

<>

This question already has an answer here:

Answers


First of all, you need to understand whether the call is asynchronous. If so, there is no result when you execute println. You can put your println inside the result block like this:

Alamofire.request(.GET, "http://httpbin.org/get")
.responseJSON { _, _, JSON, _ in
    self.myVar = JSON
    println("And here is JSON \(self.myVar)")
}

Need Your Help

Issue on parsing and sum using database

php mysql forms sum

im creating an invoice function. It involves 3 pages.

Open MS RD Client with own App and rdp-File

android android-intent client rdp

i have develope a programm for android to get rdp connections.