Latest 0.1.1
Homepage https://github.com/labi3285/QXJSON
License MIT
Platforms ios 8.0, requires ARC
Authors

A swift JSON handler inspired by SwiftyJSON.

Simple Read

var json = QXJSON([
"a": "hello",
"b": "是",
"c": [0, 1, 2]
])
print(json["a"].stringValue)
print(json["b"].boolValue)
print(json["c"].arrayValue)
print(json["c"][1].intValue)
print(json.jsonString ?? "null")
print(json.jsonList ?? [])

Simple Convert

var json = QXJSON()
json.jsonString = "{"a": "hello"}"
print(json)

Simple modify

var json = QXJSON([])
json[0] = 0
json[1] = 1
json[2] = ["a": "hello"]
print(json)

Have fun!

Latest podspec

{
    "name": "QXJSON",
    "version": "0.1.1",
    "summary": "A swift JSON handler inspired by SwiftyJSON.",
    "description": "Just treat it as a simple version of SwiftyJSON. which is more intelligent in type converts such as Bool/Int/String/JSON etc.",
    "homepage": "https://github.com/labi3285/QXJSON",
    "license": "MIT",
    "authors": {
        "labi3285": "[email protected]"
    },
    "platforms": {
        "ios": "8.0"
    },
    "source": {
        "git": "https://github.com/labi3285/QXJSON.git",
        "tag": "0.1.1"
    },
    "source_files": "QXJSON/QXJSON/*.swift",
    "requires_arc": true
}

Pin It on Pinterest

Share This