kilko.de/tags/json
- Decoding Unknown Data with Codable
A friend recently asked me how to decode the following JSON through Swift's Codable type. { "a": 1, "b": "foobar", "option.extra": { "a": 1 }, "option.extra.more": 4 } The problem is that only the first two keys (a and b) are … read more →