When working with JSON objects, we typically access elements using dot notation. For example,
var obj = {"key": "value"}; var val = obj.key;
. However, what if the key contains hyphens, like in this case: var obj = {"key-with-hyphens": "value"};
? Do we need to switch to using brackets, like this: var val = obj['key-with-hyphens'];
?