Skip to content

Substitute mode for json-iter #8

Open
@amarao

Description

@amarao

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

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