Dot in keyname clashes with drilldown token
Closed this issue · 5 comments
daniellowtw commented
The drilldown token .
can appear in the key name of the json object and will break drilling down
> echo '{ "a.a": 123 }' | jid
[Filter]> .
{
"a.a": 123
}
[Filter]> .a.a
null
[Filter]> ."a.a"
null
The first prompt suggested the autocomplete .a.a
which doesn't work.
daveloyall commented
Duplicate of #32.
fiatjaf commented
Shameless self-promotion: that feature is supported in https://github.com/fiatjaf/jiq, which is a fork of the amazing jid, but using the jq parser, such that complicated keys like "a.a" may be used like .["a.a"]
.
simeji commented
I've fixed this issue in https://github.com/simeji/jid/releases/tag/v0.7.6
simeji commented
If you have any questions, plz open this issue again.
simeji commented
If you have any questions, plz open this issue again.