Skip to content

How this project compares to gojq ? #1021

Answered by mikefarah
kpym asked this question in Q&A
Discussion options

You must be logged in to vote

yq has been built specifically to handle yaml - so it handle multi-docs yaml files, comments, aliases, merge anchors, styling, tags and has operators specifically to manipulate that metadata, and does its best to keep that formatting (though it's not perfect) when editing.

I also noticed that gojq doesn't keep the order of map keys.

I'm sure there are other differences too.

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by kpym
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants