Bird
0
0

A REST API returns nested JSON objects with inconsistent key naming conventions (camelCase vs snake_case). How can this affect client applications?

hard📝 Application Q9 of 15
Rest API - Request and Response Format
A REST API returns nested JSON objects with inconsistent key naming conventions (camelCase vs snake_case). How can this affect client applications?
AClients automatically handle all key naming styles
BClients must implement extra logic to normalize keys before use
CClients will ignore nested objects with inconsistent keys
DClients will receive syntax errors from the API
Step-by-Step Solution
Solution:
  1. Step 1: Identify inconsistent key naming in nested JSON

    Mixing camelCase and snake_case keys causes confusion in client code.
  2. Step 2: Understand client impact

    Clients must write extra code to convert or normalize keys to a single style before processing data.
  3. Final Answer:

    Clients must implement extra logic to normalize keys before use -> Option B
  4. Quick Check:

    Inconsistent keys require client normalization [OK]
Quick Trick: Use one naming style consistently in nested JSON [OK]
Common Mistakes:
MISTAKES
  • Assuming clients auto-handle mixed key styles
  • Believing inconsistent keys cause syntax errors
  • Thinking clients ignore inconsistent nested data

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Rest API Quizzes