modify nested JSON array with JQ
问题 I would like to use JQ to modify the following JSON input: { "rows": [ { "fields": [ { "name": "id", "value": "k1" }, { "name": "val", "value": "2340378b211aa3d8f2d7607cbddce883b87b191d0425736641e3d308ea329718" }, { "name": "Encoding", "value": "hex" } ] }, { "fields": [ { "name": "id", "value": "k2" }, { "name": "val", "value": "2340378b211aa3d8f2d7607cbddce883b87b191d0425736641e3d308ea329718" }, { "name": "Encoding", "value": "hex" } ] } ] } so that the "hex" value of the "value" field with