Closed mattbishop closed 1 year ago
According to Section 6.10.1, one can access an object's property with quotes:
$."my name"
This is useful for JSON objects that have spaces, or other characters that would trip up the non-quoted accessor.
These two accessors are the same:
$.aValue $."aValue"
Unlike JavaScript, this is not a valid accessor: $["aValue"] because arrays are index-based, not key based like they are in JS.
$["aValue"]
Resolved.
According to Section 6.10.1, one can access an object's property with quotes:
$."my name"
This is useful for JSON objects that have spaces, or other characters that would trip up the non-quoted accessor.
These two accessors are the same:
Unlike JavaScript, this is not a valid accessor:
$["aValue"]
because arrays are index-based, not key based like they are in JS.