Skip to content
New issue

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

Docs: Suggest yq for manipulating YAML data #1191

Closed
mcandre opened this issue Aug 1, 2016 · 8 comments
Closed

Docs: Suggest yq for manipulating YAML data #1191

mcandre opened this issue Aug 1, 2016 · 8 comments
Labels

Comments

@mcandre
Copy link

mcandre commented Aug 1, 2016

jq is awesome for grokking JSON data! Could the documentation include a link to yq for handling YAML data?

@kislyuk
Copy link

kislyuk commented Dec 27, 2017

I would suggest linking to https://github.com/kislyuk/yq instead.

@pkoppstein
Copy link
Contributor

https://github.com/kislyuk/yq has been added to the answer regarding YAML on the jq FAQ.

@alxarch
Copy link

alxarch commented Feb 1, 2019

I just released yjq with similar functionality.
It's written in Go and the release page provides binaries for all major os/arch.
It also supports YAML input -> JSON output and JSON input -> YAML output allowing it to be used in jq pipes.

@rwxrob
Copy link

rwxrob commented Jun 5, 2021

The https://github.com/mikefarah/yq project is currently leading in stars and deployments, but isn't perfect. Still, it should have a mention. It is far superior to the extremely slow and sometimes buggy Python version.

Is there an issue to adding a sister yq project that could share internal C libraries with jq? That would seem like the ideal strategy going forward in terms of performance and sustainability. Starting with baseline support for only the YAML syntax of JSON would be a start (which is all that most need).

@SleepyBrett
Copy link

SleepyBrett commented Apr 27, 2022

Since json is just a subset of yaml i'd rather just see jq switch internally and be able to take input in either form and be able to set a flag to output in yaml. It frankly kills me every day when i have to send some yaml through something like yaml2json just so i can manipulate it in jq and then convert it back on the other side.

Since all these 'competing tools' that are in the same vein have different syntax and flags and features and I don't want to bloat up build/ci containers with them just to work with a slightly different file format.

I'm sure this has been brought up a million times and shot down a million times... but lets make this a million and one.

@rwxrob
Copy link

rwxrob commented Apr 27, 2022

Just want to mention that I use gojq now. I only use jq when it is the only thing on the system. I know it is a competing project, but feel it is worth mentioning given the recent comments. I also created y2j and yq 🌳Bonzai command branches.

@magmax
Copy link

magmax commented May 16, 2022

why aren't you considering to add YAML support on jq?
YAML is just a superset of JSON, so just changing the loader to a YAML one everything should work in the same way.

@itchyny
Copy link
Contributor

itchyny commented Jun 25, 2023

Since #467 is about YAML support of jq and is still open, closing this issue, yq is mentioned in both FAQ and Alternative jq implementations.

@itchyny itchyny closed this as completed Jun 25, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

8 participants