API Testing · Middle · Question 34 of 75
Which change to a JSON response is usually backward compatible?
- 1Renaming an existing field
- 2Changing a field from number to string
- 3Adding a new optional field
Show the answer
Correct answer: Adding a new optional field
Explanation
Well-written clients ignore unknown fields. Removing, renaming or retyping fields breaks them.