Can I pass a string variable to jq not the file? January 27, 2023 by Tarik I would suggest using a bash here string. e.g. jq '.key' <<< "$json_data"