json4shell icon indicating copy to clipboard operation
json4shell copied to clipboard

Substitute mode for json-iter

Open amarao opened this issue 11 years ago • 0 comments

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

amarao avatar Jul 21 '14 11:07 amarao