name: Get element by key from JSON inputs: - {name: Json} - {name: Key, type: String} outputs: - {name: Output} metadata: annotations: author: Alexey Volkov implementation: container: image: stedolan/jq:latest command: - sh - -exc - | input_path=$0 output_path=$1 key=$2 mkdir -p "$(dirname "$output_path")" < "$input_path" jq --raw-output '.["'"$key"'"]' > "$output_path" - {inputPath: Json} - {outputPath: Output} - {inputValue: Key}