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

example correction: count(@) is not there anymore #75

Open
wungad opened this issue May 22, 2020 · 0 comments
Open

example correction: count(@) is not there anymore #75

wungad opened this issue May 22, 2020 · 0 comments

Comments

@wungad
Copy link

wungad commented May 22, 2020

From examples on jmespath.org:

current-node¶
The current-node token can be used to represent the current node being evaluated. The current-node token is useful for functions that require the current node being evaluated as an argument. For example, the following expression creates an array containing the total number of elements in the foo object followed by the value of foo["bar"].

foo[].[count(@), bar

$ jp.py -f vminfo.json "virtual_machines.count(@)"
unknown-function: Unknown function: count()
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

1 participant