我使用HTTP请求发送以下数据:
{
"id": "a",
"jsonrpc": "2.0",
"method": "addJsonEvent",
"params": {
"common_fields": {
"source_hwid": "${HWID}",
"api_key": "${custid}"
},
"data": ["{ \"parent_process_path\": \"C:\\\\disk2\\\\process.exe\", \"command_line\": \"\\\"C:\\\\Windows\\\\Microsoft.NET\\\\Framework\\\\v4.0.30319\\\\ngen.exe\\\" uninstall \\\"C:\\\\Windows\\\\assembly\\\\NativeImages_v4.0.30319_32\\\\Microsoft.W2d29a719#\\\\fdb201638092fc8d1310350e099eba45\\\\Microsoft.Windows.DSC.CoreConfProviders.ni.dll\\\" /noroot /LegacyServiceBehavior\", \"api_key\": \"${custid}\" }"]
}}
查看View Results Tree
我发现发送的数据如下:
{
"id": "a",
"jsonrpc": "2.0",
"method": "addJsonEvent",
"params": {
"common_fields": {
"source_hwid": "560ade69-808e-18a4-7d2a-123-123456000001",
"api_key": "5a9fb2311da1972e6c8b4567"
},
"data": ["{ \"parent_process_path\": \"C:\\disk2\\process.exe\", \"command_line\": \"\\"C:\\Windows\\Microsoft.NET\\Framework\\v4.0.30319\\ngen.exe\\" uninstall \\"C:\\Windows\\assembly\\NativeImages_v4.0.30319_32\\Microsoft.W2d29a719#\\fdb201638092fc8d1310350e099eba45\\Microsoft.Windows.DSC.CoreConfProviders.ni.dll\\" /noroot /LegacyServiceBehavior\", \"api_key\": \"5a9fb2311da1972e6c8b4567\" }"]
}}
发送的实际数据不再是有效的JSON。
有没有办法按原样发送数据,而无需转义这些字符?