CocoaPods trunk is moving to be read-only. Read more on the blog, there are 13 months to go.
| TestsTested | ✓ |
| LangLanguage | SwiftSwift |
| License | MIT |
| ReleasedLast Release | Nov 2017 |
| SwiftSwift Version | 4.0 |
| SPMSupports SPM | ✓ |
Maintained by Alex Soderman.
Using SPM (in your Package.swift):
let package = Package(
name: "NameOfYourProject",
dependencies: [
.package(url: "https://github.com/asoderman/JSONDecoder.git", from: "0.1.5")
]
)then
swift package resolve
Quickstart
let j = try! JSONParser(text: JSONTEXT).flatten()
let name = j["name"] as! String
let id = j["id"] as! IntError handling
do {
let j = try JSONParser(text: BADJSON).flatten()
let name = j["name"] as! String
let id = j["id"] as! Int
} catch {
// Do something
}
}swift package generate-xcodeproj