I wonder how to professionally call variables in JSON and what does it matter. For example, in this StackExchange, separate words in one variable are separated by a sign _
, while in another code, for example, the Netflix project on GitHub does not have this character anymore, and for a simple one string. So what is the meaning of using _
in a variable in JSON?
Asked
Active
Viewed 1,203 times
0

JONKI
- 535
- 5
- 10
- 24
-
Naming conventions are just that, conventions. Various programming languages promote various schemes. There is no right or wrong, as long as you don't break the relevant syntax. The only key is, pick a scheme, and **be consistent** – ernest_k Mar 19 '18 at 18:49
1 Answers
0
This is again topic where people can debate about their preferences.I think people from perl, ruby background prefer underscore while other people prefer camelCase. You can use whatever you prefer and just make sure to be consistent with what you choose. I personally follow google guide which uses camelCase.

want2learn
- 2,471
- 2
- 20
- 37