mattbishop / sql-jsonpath-js

JS implementation of the SQL/JSONPath dialect, from SQL2016.
MIT License
0 stars 0 forks source link

Support quoted accessors #17

Closed mattbishop closed 1 year ago

mattbishop commented 2 years 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.

mattbishop commented 1 year ago

Resolved.