iOS Swift - Networking
You have this JSON:
And these Swift structs:
How do you decode the JSON into a
{"user": {"id": 1, "name": "Bob"}}And these Swift structs:
struct User: Codable { var id: Int; var name: String }
struct Response: Codable { var user: User }How do you decode the JSON into a
Response object?