Project Name | Stars | Downloads | Repos Using This | Packages Using This | Most Recent Commit | Total Releases | Latest Release | Open Issues | License | Language |
---|---|---|---|---|---|---|---|---|---|---|
Swiftyjson | 22,069 | 7,777 | 2 months ago | 19 | March 28, 2021 | 131 | mit | Swift | ||
The better way to deal with JSON data in Swift. | ||||||||||
Tswechat | 3,470 | 4 years ago | 21 | mit | Swift | |||||
A WeChat alternative. Written in Swift 5. | ||||||||||
Alamofireobjectmapper | 2,642 | 892 | a year ago | 26 | September 03, 2019 | 58 | mit | Swift | ||
An Alamofire extension which converts JSON response data into swift objects using ObjectMapper | ||||||||||
Evreflection | 936 | 109 | 4 years ago | 194 | February 18, 2019 | 17 | other | Swift | ||
Reflection based (Dictionary, CKRecord, NSManagedObject, Realm, JSON and XML) object mapping with extensions for Alamofire and Moya with RxSwift or ReactiveSwift | ||||||||||
Codablealamofire | 749 | 30 | 2 years ago | 5 | April 21, 2020 | 2 | mit | Swift | ||
An extension for Alamofire that converts JSON data into Decodable objects. | ||||||||||
Daisynet | 361 | 10 months ago | 11 | December 26, 2021 | 6 | mit | Swift | |||
1. - Alamofire与Cache封装 , 更容易存储请求数据. 2. - 封装Alamofire下载,使用更方便 | ||||||||||
Ws Deprecated | 353 | 3 years ago | 9 | December 13, 2019 | n,ull | mit | Swift | |||
⚠️ Deprecated - (in favour of Networking) :cloud: Elegantly connect to a JSON api. (Alamofire + Promises + JSON Parsing) | ||||||||||
Serpent | 287 | 3 | 2 years ago | 3 | October 22, 2018 | 11 | mit | Swift | ||
A protocol to serialize Swift structs and classes for encoding and decoding. | ||||||||||
Realhttp | 243 | 7 months ago | 20 | July 23, 2022 | 6 | mit | Swift | |||
🌀swift async http client - fast, lightweight, type-safe | ||||||||||
Alamofirejsontoobjects | 156 | 17 | 5 years ago | 12 | October 22, 2018 | 1 | other | Swift | ||
An Alamofire extension which converts JSON response data into swift objects using EVReflection |
⚠️ DEPRECATED
UnboxedAlamofire is deprecated as well as Unbox is deprecated in favor of Swift’s built-in Codable
API.
Alamofire + Unbox: the easiest way to download and decode JSON into swift objects.
1.x
and swift2 branch2.x
Objects you request have to conform Unboxable protocol.
Alamofire.request(url, method: .get).responseObject { (response: DataResponse<Candy>) in
// handle response
let candy = response.result.value
// handle error
if let error = response.result.error as? UnboxedAlamofireError {
print("error: \(error.description)")
}
}
Alamofire.request(url, method: .get).responseArray { (response: DataResponse<[Candy]>) in
// handle response
let candies = response.result.value
// handle error
if let error = response.result.error as? UnboxedAlamofireError {
print("error: \(error.description)")
}
}
Also you can specify a keypath in both requests:
Alamofire.request(url, method: .get).responseObject(keyPath: "response") { (response: DataResponse<Candy>) in
// handle response
let candy = response.result.value
// handle error
if let error = response.result.error as? UnboxedAlamofireError {
print("error: \(error.description)")
}
}
pod 'UnboxedAlamofire', '~> 2.0'
github "serejahh/UnboxedAlamofire" ~> 2.0