CocoaPods trunk is moving to be read-only. Read more on the blog, there are 11 months to go.

QXJSON 0.1.1

QXJSON 0.1.1

Maintained by labi3285.



QXJSON 0.1.1

  • By
  • labi3285

QXJSON

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!