jsonfilter and queries with '-' in them
Jo-Philipp Wich
jo at mein.io
Thu Aug 13 04:37:32 EDT 2020
Hi,
> Could you write a little bit about the underlying cause of this just
> so I can understand better?
it is basically mimicking JavaScript object access syntax where labels after a
dot must be valid identifiers.
In JS, an expression `obj.foo-bar.baz` would be interpreted as `obj.foo` minus
`bar.baz`. The jsonfilter grammar simply followed this rule even if its
current expression syntax scope would allow for tolerating such a ambiguities.
~ Jo
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: OpenPGP digital signature
URL: <http://lists.openwrt.org/pipermail/openwrt-devel/attachments/20200813/67bed17e/attachment.sig>
More information about the openwrt-devel
mailing list