Skip to content

utils:modjson

utils:modjson

Modify an S3 based JSON file object with jq

Example:

     {
      "tool": "utils:modjson",
      "parameters": {
        "location": "s3://{target-bucket}/{json-base-bath}/{asset_id}-{job_id}.json",
        "jq": ".assetId = "{asset_id}" | .jobId = "{job_id}" | .status = ["Started"]"
      }
    },


This can update a JSON object with:

    "status": [
        "Started"
    ],
Parameter Properties Default Type Choice Description
default required str
jq required str
role_arn optional The role to be assumed for executing the tool