API Design · Junior · Question 23 of 75

Which field naming style should a JSON API use?

Explanation

camelCase matches JavaScript clients; snake_case is common too. Consistency is what matters.

Further reading

Problem with a question

API Design · Junior · question 23

Test yourself

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

Take this quiz