Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dot in keyname clashes with drilldown token #54

Closed
daniellowtw opened this issue Jan 6, 2017 · 5 comments
Closed

Dot in keyname clashes with drilldown token #54

daniellowtw opened this issue Jan 6, 2017 · 5 comments

Comments

@daniellowtw
Copy link

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
Copy link

Duplicate of #32.

@fiatjaf
Copy link

fiatjaf commented Mar 2, 2017

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
Copy link
Owner

simeji commented Apr 1, 2019

@daniellowtw

I've fixed this issue in https://github.com/simeji/jid/releases/tag/v0.7.6

@simeji
Copy link
Owner

simeji commented Apr 2, 2019

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

1 similar comment
@simeji
Copy link
Owner

simeji commented Apr 2, 2019

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

@simeji simeji closed this as completed Apr 2, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants