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

Setting values in JSON lines #22

Open
f3rn4nd0-c354r opened this issue May 3, 2020 · 1 comment
Open

Setting values in JSON lines #22

f3rn4nd0-c354r opened this issue May 3, 2020 · 1 comment

Comments

@f3rn4nd0-c354r
Copy link

Hello!

I find this API more readable than jq. However, I'm not sure how to perform some actions:

JSON lines example:

{"name": "Gilbert", "age": 61}
{"name": "Alexa", "age": 34}
{"name": "May", "age": 57}

How would I update all names to "Peter"?
How would I update "name" key to "firstname"?

Thanks!

(I tried jj -v Peter '..#.name')

@corneliusroemer
Copy link

I think this is not supported - jj seems to not support ndjson at all sadly. I agree that the syntax is more readable than jq, but also far more limited.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants