import CoreJSON
// CoreJson provides a very simple JSON data model
let simpleJson = JSON.array([
JSON.bool(true),
JSON.string("string"),
JSON.null,
JSON.number(.int(10)),
JSON.object([:])
])
// JSON is equatable and hashable
simpleJson == simpleJson // -> true
JSON.bool(true) == .null // -> false
simpleJson.hashValue // -> Some hash value
CoreJSON
CoreJSON provides a simple JSON data model and on top of that a collection of utilities.
Modules
CoreJSON consists of several modules:
Demo
Core
Literals
Subscript
Convenience
Pointer
Foundation