Skip to content

Commit

Permalink
JSON - Fixed the trailing newline in the "Get_element_by_index" "Get_…
Browse files Browse the repository at this point in the history
…element_by_key" components
  • Loading branch information
Ark-kun committed Aug 3, 2021
1 parent 0178201 commit 204f65b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion components/json/Get_element_by_index/component.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ implementation:
output_path=$1
index=$2
mkdir -p "$(dirname "$output_path")"
< "$input_path" jq --raw-output .["$index"] > "$output_path"
< "$input_path" jq --raw-output --join-output .["$index"] > "$output_path"
- {inputPath: Json}
- {outputPath: Output}
- {inputValue: Index}
2 changes: 1 addition & 1 deletion components/json/Get_element_by_key/component.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ implementation:
output_path=$1
key=$2
mkdir -p "$(dirname "$output_path")"
< "$input_path" jq --raw-output '.["'"$key"'"]' > "$output_path"
< "$input_path" jq --raw-output --join-output '.["'"$key"'"]' > "$output_path"
- {inputPath: Json}
- {outputPath: Output}
- {inputValue: Key}

0 comments on commit 204f65b

Please sign in to comment.