Skip to content

Substitute mode for json-iter #8

Open
@amarao

Description

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": },
...
]

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions