diff --git a/utils/merge-json b/utils/merge-json index d5124dd..55d8efc 100755 --- a/utils/merge-json +++ b/utils/merge-json @@ -43,7 +43,7 @@ if ! echo "$json2" | jq -e . >/dev/null 2>&1; then fi # Merge the JSON objects -merged_json=$(printf '%s\n%s' "$json1" "$json2" | jq -cs add) +merged_json=$(printf '%s\n%s' "$json1" "$json2" | jq -cs '.[0] * .[1]') # Print the merged JSON echo "$merged_json"