I want to convert JSON string into an array in bash. The JSON string is passed to the bash script as an argument (it doesn\'t exist in a file).
Is there a way of ach
If you're trying to do this in a .sh file, this is what worked for me:
.sh
local json_data $(getJiraIssue "$1") # store JSON in var echo `jq -n "$json_data" | jq '.fields.summary'` # pass that JSON var to jq