Property names must conform to the following guidelines:
Property names should be meaningful names with defined semantics.
Property names must be camel-cased, ascii strings.
The first character must be a letter, an underscore (_) or a dollar sign ($).
Subsequent characters can be a letter, a digit, an underscore, or a dollar sign.
Reserved JavaScript keywords should be avoided (A list of reserved JavaScript keywords can be found below).
These guidelines mirror the guidelines for naming JavaScript identifiers. This allows JavaScript clients to access properties using dot notation. (for example, result.thisIsAnInstanceVariable). Here’s an example of an object with one property:
I’ve struggled a bit with this - it’s especially bad when you’re building a polyglot application. It feels weird, but then in my JS I find myself doing a lot of var someAttribute = body.some_attribute to keep the “different” stuff confined to the edges of my code.