I’m trying to decode two slightly different JSON API responses to the same Codable type, Account
. Mapping userResponse.json
’s uid
to id
is trivial, but extracting the nested user
is stumping me.
Any suggestions would be greatly appreciated!