Skip to content
Sharp

HTTP JSON APIs · interview question

Why might an API client crash if JSON response shapes are not treated as strict contracts?

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

Correct answer

D. Unexpected changes in fields may cause deserialization errors

Why

If JSON response shapes are not treated as strict contracts, unexpected changes in fields can cause deserialization errors as the client may not know how to handle unexpected or missing data, leading to crashes.

Test yourself on HTTP JSON APIs

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

Start free test
All HTTP JSON APIs questions →