Latest0.0.7
Homepagehttps://github.com/Beyova/BeyovaJSON
LicenseMIT
Platformsosx 10.9, ios 8.0, requires ARC
Authors

Travis CI
Carthage Compatible
CocoaPods
Swift

BeyovaJSON allows any json for Coadable in Swift 4.

Installation

CocoaPods

pod 'BeyovaJSON'

Carthage

github "Beyova/BeyovaJSON"

Usage

import BeyovaJSON

Codable

Codable is added with Xcode 9, iOS 11 and Swift 4.
It is used to make your data types encodable and decodable for compatibility with external representations such as JSON.

class Group: Codable {
    var title: String = "Guardians of the Galaxy"
    var members: JSON = [["name": "Star-Lord"],["name": "Groot"],["name": "Rocket"]]
    var date: Date = Date()
}
let group = Group()
let encoder = JSONEncoder()
encoder.outputFormatting = .prettyPrinted
let data = try! encoder.encode(group)
print(String(bytes: data, encoding: .utf8)!)

Latest podspec

{
    "name": "BeyovaJSON",
    "version": "0.0.7",
    "summary": "BeyovaJSON allows any json for Coadable in Swift 4",
    "homepage": "https://github.com/Beyova/BeyovaJSON",
    "license": {
        "type": "MIT"
    },
    "authors": {
        "canius": "[email protected]"
    },
    "requires_arc": true,
    "platforms": {
        "osx": "10.9",
        "ios": "8.0"
    },
    "source": {
        "git": "https://github.com/Beyova/BeyovaJSON.git",
        "tag": "0.0.7"
    },
    "source_files": "Source/*.swift"
}

Pin It on Pinterest

Share This