Skip to content

SwiftyJSON/Alamofire-SwiftyJSON

Folders and files

NameName
Last commit message
Last commit date

Latest commit

64b4c1e · Apr 5, 2019

History

67 Commits
Sep 28, 2017
Sep 28, 2017
Sep 27, 2018
Sep 28, 2017
Feb 25, 2017
Sep 23, 2014
Sep 23, 2014
Feb 25, 2017
Sep 28, 2017
Nov 8, 2017
Sep 23, 2014
Apr 5, 2019

Repository files navigation

Alamofire-SwiftyJSON

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 ⚠️

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:

pod 'Alamofire-SwiftyJSON'

Carthage:

github "SwiftyJSON/Alamofire-SwiftyJSON" "master"

Usage

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)
                  })