Skip to content
Sharp

HTTP JSON APIs · interview question

Which approach should be used to handle a breaking change in a JSON API response to avoid client crashes?

Multiple choiceHardchapter-11-curatedpremiumhttp-json-apisapi-versioning
Choose one answer
Answer and explanation

Correct answer

B. Implement a new version path in the URL.

Why

Using a new version path in the URL is a common practice for handling breaking changes, as it allows clients to opt-in to the new version without affecting existing functionality.

Test yourself on HTTP JSON APIs

A free test with instant, explained results. No account needed.

Start free test
All HTTP JSON APIs questions →