Available thru Cocoapods
Latest 0.1
Homepage https://github.com/Zewo/Medea
License MIT

JSON

Swift 2.2
Platforms Linux
License MIT
Slack Status

JSON (RFC 7159) for Swift 2.2.

Usage

import JSON

// parse JSON string

let json = try! JSONParser.parse("{"foo":"bar"}")

// create JSON literal

let json: JSON = [
    "null": nil,
    "string": "Foo Bar",
    "boolean": true,
    "array": [
        "1",
        2,
        nil,
        true,
        ["1", 2, nil, false],
        ["a": "b"]
    ],
    "object": [
        "a": "1",
        "b": 2,
        "c": nil,
        "d": false,
        "e": ["1", 2, nil, false],
        "f": ["a": "b"]
    ],
    "number": 1969
]

Installation

  • Add JSON to your Package.swift
import PackageDescription

let package = Package(
    dependencies: [
        .Package(url: "https://github.com/Zewo/JSON.git", majorVersion: 0, minor: 1)
    ]
)

Community

Slack

Join us on Slack.

License

JSON is released under the MIT license. See LICENSE for details.

Latest podspec

{
    "name": "Medea",
    "version": "0.1",
    "license": "MIT",
    "summary": "JSON (RFC 7159) for Swift 2 (Linux ready)",
    "homepage": "https://github.com/Zewo/Medea",
    "authors": {
        "Paulo Faria": "[email protected]"
    },
    "source": {
        "git": "https://github.com/Zewo/Medea.git",
        "tag": "v0.1"
    },
    "platforms": {
        "ios": "8.0",
        "osx": "10.9"
    },
    "source_files": [
        "Dependencies/Aeson/*.c",
        "Medea/**/*.swift"
    ],
    "xcconfig": {
        "SWIFT_INCLUDE_PATHS": "$(SRCROOT)/Medea/Dependencies"
    },
    "preserve_paths": "Dependencies/*",
    "requires_arc": true
}

Pin It on Pinterest

Share This