Alamofire extension for serialize NSData to SwiftyJSON
Swift
1,366
61 commits
updated Sep 4, 2020
An extension to make serializing Alamofire's response with SwiftyJSON easily.
⚠️ To use with Swift 3.x please ensure you are using >= 2.0.0 ⚠️
⚠️ To use with Swift 4.x please ensure you are using >= 3.0.0 ⚠️
| Alamofire-SwiftyJSON | Swift version | Alamofire | SwiftyJSON |
|---|---|---|---|
| 2.x | Swift 3.x | 4.x | 3.x |
| 3.x | Swift 4.x | 4.5.x | 4.x |
pod 'Alamofire-SwiftyJSON'
github "SwiftyJSON/Alamofire-SwiftyJSON" "master"
import Alamofire_SwiftyJSON
Alamofire.request(URL, method: .get, parameters: parameters, encoding: URLEncoding.default)
.responseSwiftyJSON { dataResponse in
print(dataResponse.request)
print(dataResponse.response)
print(dataResponse.error)
print(dataResponse.value)
})
892 followers · starred Mar 2020
93 followers · starred Jan 2015
171 followers · starred Jun 2015
9 followers · starred Jul 2022
Alamofire extension for serialize NSData to SwiftyJSON
Swift
1,366
61 commits
updated Sep 4, 2020
An extension to make serializing Alamofire's response with SwiftyJSON easily.
⚠️ To use with Swift 3.x please ensure you are using >= 2.0.0 ⚠️
⚠️ To use with Swift 4.x please ensure you are using >= 3.0.0 ⚠️
| Alamofire-SwiftyJSON | Swift version | Alamofire | SwiftyJSON |
|---|---|---|---|
| 2.x | Swift 3.x | 4.x | 3.x |
| 3.x | Swift 4.x | 4.5.x | 4.x |
pod 'Alamofire-SwiftyJSON'
github "SwiftyJSON/Alamofire-SwiftyJSON" "master"
import Alamofire_SwiftyJSON
Alamofire.request(URL, method: .get, parameters: parameters, encoding: URLEncoding.default)
.responseSwiftyJSON { dataResponse in
print(dataResponse.request)
print(dataResponse.response)
print(dataResponse.error)
print(dataResponse.value)
})
892 followers · starred Mar 2020
93 followers · starred Jan 2015
171 followers · starred Jun 2015
9 followers · starred Jul 2022