Add support for nested JSON
This PR adds support for encoding nested JSON. For example, you can encode a Codable datatype that includes other Codable types.
You can use this with Codable's polymorphism support to add small bits of data that support polymorphism by having a type annotation outside a nested object you intend to decode.
I've added tests for nested encoding, which is all I materially changed. I'm also happy to go write nested decode tests (though those just use Swift's standard JSONDecoder) if it would be useful.
@0xTim Following up on this — should I write more tests or do the ones I've added do the job?
I believe #207 would be solved by this PR (without the PostgresJSONCodable workaround)
Indentation should be fixed now
I have also this trouble. Thanks for the nice PR.