jsonfilter and queries with '-' in them

Michael Jones mike at meshplusplus.com
Wed Aug 12 17:14:07 EDT 2020


Thanks. That works.

Could you write a little bit about the underlying cause of this just
so I can understand better?

On Wed, Aug 12, 2020 at 3:59 PM Jo-Philipp Wich <jo at mein.io> wrote:
>
> Hi,
>
> as already implied by Dirk, you need to use bracket notation for labels that
> are not valid variable identifiers.
>
> So instead of `@.foo-bar` use `@["foo-bar"]`.
>
> ~ Jo
>
> _______________________________________________
> openwrt-devel mailing list
> openwrt-devel at lists.openwrt.org
> https://lists.openwrt.org/mailman/listinfo/openwrt-devel



More information about the openwrt-devel mailing list