API Testing · Middle · Question 34 of 75

Which change to a JSON response is usually backward compatible?

Show the answer

Correct answer: Adding a new optional field

Explanation

Well-written clients ignore unknown fields. Removing, renaming or retyping fields breaks them.

Further reading

Problem with a question

API Testing · Middle · question 34

Test yourself

Take the API Testing · Middle quiz: questions and options are shuffled, and you get a review of your mistakes at the end.

Take this quiz