# instead of using $1 directly in the JSON data
# escape the input using jq to handle special characters
escaped_input=$(printf '%s' "$1" | jq -Rs '.')
