Deviopath › Swift

Decode a User

Medium · Codable

JSONDecoder turns {"name":"Ada","age":36} into a User. Invalid JSON returns name "" and age 0. Write parseUser(_:) returning [name, String(age)].

Next: LRU Cache