i need create string in bash \"
in string.
specifically, need create string this:
string="{\"name\":\"execute_recipes\", \"args\":{\"recipes\":[$list_of_recipes]}}"
so when echo $string, have receive:
{\"name\":\"execute_recipes\", \"args\":{\"recipes\":[$list_of_recipes]}}
using single quotes around should trick. single quotes don't interpolate special characters.
string='{\"name\":\"execute_recipes\", \"args\":{\"recipes\":[$list_of_recipes]}}'