Closed tayloraswift closed 2 years ago
feedback on current API is that is is too complex and expects users to interact with swift-grammar types. this API exists to support high-performance use-cases, but many other use cases just want to parse a String and dispatch to Decodable.
swift-grammar
String
Decodable
in particular, we should have
let _:SomeDecodable = try .init(from: try JSON.init(parsing: #"{ "x": 1 }"#))
implemented in master by #52
master
feedback on current API is that is is too complex and expects users to interact with
swift-grammar
types. this API exists to support high-performance use-cases, but many other use cases just want to parse aString
and dispatch toDecodable
.in particular, we should have