You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There should be a dot before the query's "[" (otherwise, the query is identical to the example for array construction, but with different results), like this:
jq '.[.user, .projects[]]'
(2). Alternative operator - //
The second paragraph begins
This is useful for providing defaults: .foo or 1
It should be:
This is useful for providing defaults: .foo // 1
The text was updated successfully, but these errors were encountered:
You're right that it's wrong, but I don't think your fix fixes it (what you posted would look up the username and each project as a key in the input object).
The program that's there would, as you say, produce an array. I'll remove the brackets so that it produces the intended output.
(1). minor bug in the docs, for "," (comma) operator:
There should be a dot before the query's "[" (otherwise, the query is identical to the example for array construction, but with different results), like this:
(2). Alternative operator - //
The second paragraph begins
It should be:
The text was updated successfully, but these errors were encountered: