Latest 0.1.0
Homepage https://github.com/patrickmontalto/SwiftJSONKit
License MIT
Platforms ios 8.0
Authors

Build Status
Version
License
Platform

Overview

Installation with Cocoapods

SwiftJSONKit is available through Cocoapods. To install, simply add the following line to your Podfile:

pod "SwiftJSONKit"

Usage

Take a plain old blog post struct:

struct Post {
    let title: String
    let createdAt: Date

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

Author

Patrick Montalto

License

SwiftJSONKit is available under the MIT license. See the LICENSE file for more info.

Latest podspec

{
    "name": "SwiftJSONKit",
    "version": "0.1.0",
    "summary": "A small Swift 3 framework for working with JSON APIs.",
    "description": "This CocoaPod provides the ability to deserialize JSON into objects with ease.",
    "homepage": "https://github.com/patrickmontalto/SwiftJSONKit",
    "license": "MIT",
    "authors": {
        "patrickmontalto": "[email protected]"
    },
    "source": {
        "git": "https://github.com/patrickmontalto/SwiftJSONKit.git",
        "tag": "0.1.0"
    },
    "platforms": {
        "ios": "8.0"
    },
    "source_files": "SwiftJSONKit/Sources/**/*",
    "pushed_with_swift_version": "3.0"
}

Pin It on Pinterest

Share This