Files
Argo/ArgoTests/JSON/url.json
Gordon Fontenot 0ad59fa59e Introduce DecodedType typealias
Introducing this typealias helps when trying to conform a non-final
class to `JSONDecodable`.

If we just use `Self`, we run into an issue where the compiler can't
ensure that return type is correct, because the class might be
subclassed. By letting classes explicitly define their decoded type, we
can make the compiler happy while maintaining the ability to subclass if
that's what we want.

As an added benefit, we can default `DecodedType` to `Self`, which means
that `structs` and `final` classes don't need to worry about changing
anything from the way they are doing it now.
2015-01-08 14:49:27 -05:00

4 lines
35 B
JSON

{
"url": "http://example.com",
}