API Design · Junior · Question 23 of 75
Which field naming style should a JSON API use?
- ✓Correct answer: One consistent style across the whole API (e.g. camelCase), documented in the style guide
- 2Mixed styles to support all languages
- 3Whatever each endpoint's author prefers
Explanation
camelCase matches JavaScript clients; snake_case is common too. Consistency is what matters.