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

-K fails to match when JSON is enclosed in '[]' brackets #26

Open
eap-nutanix opened this issue Dec 24, 2022 · 1 comment
Open

-K fails to match when JSON is enclosed in '[]' brackets #26

eap-nutanix opened this issue Dec 24, 2022 · 1 comment
Assignees
Labels
good first issue Good for newcomers question Further information is requested

Comments

@eap-nutanix
Copy link

(warning, I don't claim to actually know what I'm doing)

I've observed that if the JSON returned by an API call is enclosed in '[]' brackets (i.e. ordered-list format), the jsonKey search fails. If it encounters '{}' (key-value pairs), then it works fine.

This is a very helpful plugin - I'm using it to monitor Arista CCF SDN switches, as neither SNMP nor syslog contains the value we are looking for.

@xWyatt xWyatt self-assigned this Jul 28, 2023
@xWyatt xWyatt added good first issue Good for newcomers question Further information is requested labels Jul 28, 2023
xWyatt added a commit that referenced this issue Jun 7, 2024
@michaje-gsc
Copy link

Same issue here. It would be great to have a fix that includes a syntax for the -K option and allows to navigate within arrays.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers question Further information is requested
Projects
None yet
Development

No branches or pull requests

3 participants