Replies: 2 comments 1 reply
-
The command you've got up there creates a json doc for each yaml doc - which is why you are seeing that output. What you'll need to do is:
|
Beta Was this translation helpful? Give feedback.
0 replies
-
@mikefarah Thanks for your quick reply. This command can't read the yaml from
if I add '[.]'
|
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
-
I got a single yaml file with multple doc
How can I output a json like this
When I use
yq e sample.yaml -j
, it generates a invalid jsonBeta Was this translation helpful? Give feedback.
All reactions