var_createsession=$(curl -H "client_session_id:script.sh" -H "home-id:$home_id" -H "client_id:sample.sh" -H "Content-Type:application/json" -d '{"action":"ip","{"\profile\":\"$profile_name\"}","includeBookmark":"false","serviceGroup":41,"accountNumber":"123456","macAddress":"abc"}' -s -w "HTTPSTATUS%{http_code}" "$cmplt_url_createsession")
“ errorDetail”:“无效的参数:JSON解析错误:意外字符('\'(代码92)):期望冒号分隔字段名称和值;嵌套的异常是> com.fasterxml.jackson.core。 JsonParseException:意外字符(“ \”(代码92)):期望冒号分隔字段名称和值\ n
可以帮忙还是提供任何建议,以向请求正文发送多个数据。