Intermediate
Swift
Q53 / 100
What is Codable in Swift?
Correct! Well done.
Incorrect.
The correct answer is B) A type alias for Encodable & Decodable, enabling automatic JSON/Plist serialization and deserialization
B
Correct Answer
A type alias for Encodable & Decodable, enabling automatic JSON/Plist serialization and deserialization
Explanation
struct User: Codable { var name: String; var age: Int } can be encoded to JSON with JSONEncoder and decoded with JSONDecoder automatically.
Progress
53/100