Does line operator work with JSON? #2018
Unanswered
treatmesubj
asked this question in
Q&A
Replies: 1 comment 1 reply
-
Sorry it only works with yaml files at the moment - the json parser doesn't give me that information :( |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
yq
can find a key's value in my JSON file just fine peryq '.sources["worker-nodes"][10].name' nodes.json
, but utilizing the line operator viayq '.sources["worker-nodes"][10].name | line' nodes.json
always returns0
, rather than the line number.Does the
line
operator work with JSON files?Beta Was this translation helpful? Give feedback.
All reactions