CocoaPods trunk is moving to be read-only. Read more on the blog, there are 13 months to go.
| TestsTested | ✓ |
| LangLanguage | SwiftSwift |
| License | MIT |
| ReleasedLast Release | Apr 2017 |
| SwiftSwift Version | 3.0 |
| SPMSupports SPM | ✗ |
Maintained by Patrick Montalto.
Take a plain old blog post struct:
struct Post {
let title: String
let createdAt: DateAnd now add JSON deserialization easily:
import SwiftJSONKit
extension Post: JSONDeserializable {
init(jsonRepresentation dictionary: JSONDictionary) throws {
title = try decode(json, key: "title")
createdAt = try decode(json, key: "created_at")
}
}
Patrick Montalto
SwiftJSONKit is available under the MIT license. See the LICENSE file for more info.