simeji/jid

Dot in keyname clashes with drilldown token

Closed this issue · 5 comments

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.

Duplicate of #32.

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"].

If you have any questions, plz open this issue again.

If you have any questions, plz open this issue again.