Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/SwiftyJSON/Alamofire-SwiftyJSON
Alamofire extension for serialize NSData to SwiftyJSON
https://github.com/SwiftyJSON/Alamofire-SwiftyJSON
alamofire alamofire-swiftyjson swift swiftyjson
Last synced: 3 months ago
JSON representation
Alamofire extension for serialize NSData to SwiftyJSON
- Host: GitHub
- URL: https://github.com/SwiftyJSON/Alamofire-SwiftyJSON
- Owner: SwiftyJSON
- License: mit
- Created: 2014-09-23T01:43:29.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2020-09-04T17:04:27.000Z (over 4 years ago)
- Last Synced: 2024-05-16T12:29:55.429Z (8 months ago)
- Topics: alamofire, alamofire-swiftyjson, swift, swiftyjson
- Language: Swift
- Homepage:
- Size: 45.9 KB
- Stars: 1,369
- Watchers: 57
- Forks: 173
- Open Issues: 14
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-swift - Alamofire-SwiftyJSON - Alamofire extension for serialize NSData to SwiftyJSON. (JSON/XML Manipulation)
README
# Alamofire-SwiftyJSON ![](https://travis-ci.org/SwiftyJSON/Alamofire-SwiftyJSON.svg?branch=master)
An extension to make serializing [Alamofire](https://github.com/Alamofire/Alamofire)'s response with [SwiftyJSON](https://github.com/SwiftyJSON/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`** ⚠️
## Swift version
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## Requirements
- iOS 8.0+ / Mac OS X 10.9+
- Xcode 8.0+
- Swift 3.0+## Install
[CocoaPods](https://cocoapods.org/):
```ruby
pod 'Alamofire-SwiftyJSON'
```[Carthage](https://github.com/Carthage/Carthage):
```
github "SwiftyJSON/Alamofire-SwiftyJSON" "master"
```## Usage
```swift
import Alamofire_SwiftyJSON
``````swift
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)
})
```