定義する正しい構文は何ですか: $data as :
{\"username\":\"[$username]\",\"password\":\"[$password]\",\"webdata\": [$syntax]}" \
それを私のシェルスクリプトに置き換えます
result=$(curl -D - -k -m 10 -H "Content-type: application/json; charset=UTF-8" \
-d "{\"username\":\"[$username]\",\"password\":\"[$password]\",\"webdata\": [$syntax]}" \
https://${host}/api 2>/dev/null |head -1)