We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
It would be cool to have a shorthand way of getting the length of a JSON array. For example with this JSON:
{ "data" : [1, 2, 3] }
... I currently need to do this to check the length:
arr, _ := jq.Array("data") fmt.Println( len(arr) )
It would be nice to be able to do this:
fmt.Println( jq.Length("data") )
A small thing, but very handy.
The text was updated successfully, but these errors were encountered:
Length()
No branches or pull requests
It would be cool to have a shorthand way of getting the length of a JSON array. For example with this JSON:
... I currently need to do this to check the length:
It would be nice to be able to do this:
A small thing, but very handy.
The text was updated successfully, but these errors were encountered: