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

Substitute mode for json-iter #8

Open
amarao opened this issue Jul 21, 2014 · 0 comments
Open

Substitute mode for json-iter #8

amarao opened this issue Jul 21, 2014 · 0 comments

Comments

@amarao
Copy link
Owner

amarao commented Jul 21, 2014

Found need for 'substitute' mode - add/replace element of object (inside array) based on output of program with specified args.

Example:
[
{ "uuid": , "data": },
...
]

cat example.json|json-iter --substitute --key-name='owner' get-owner {.uuid}

result:

[
{ "uuid": , "owner": , "data": },
...
]

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

1 participant