Bourne
Bourne is a Swift library to parse JSON on iOS, OS X, tvOS, and watchOS.
Bourne currently only supports UTF-8. Support for other encodings maybe added in the future.
Usage
let json = try JSON(data: data)
let person = Person(json: json)
struct Person {
let name: String
let address: String?
init(json: JSON) throws {
self.name = try json["data"]["name"].value()
self.address = try? json["data"]["addresses"][0].value()
}
}
Installation
Bourne is compatible with