Azure Stream Analytics Error :Could not deserialize the input event as Json
Azure Stream Analytics Error :Could not deserialize the input event as Json
我正在尝试创建流分析作业。消息按以下格式发送 JSON
:
var message = "Name;\n" + Guid.NewGuid().ToString() + ";" ;
当我 运行 我的工作时,我收到以下错误:
Could not deserialize the input event as Json. Some possible reasons:
1) Malformed events
2) Input source configured with incorrect serialization format
根据您的代码示例,您的输入似乎采用以下形式:
Name;
AA7509E7-D482-459B-9689-456A0F952B44;
那么您看到的错误消息是正确的,这是无效的 JSON,因此 ASA 将无法反序列化它。您的 JSON 字符串应如下所示:
{
"Name": "AA7509E7-D482-459B-9689-456A0F952B44"
}
我正在尝试创建流分析作业。消息按以下格式发送 JSON
:
var message = "Name;\n" + Guid.NewGuid().ToString() + ";" ;
当我 运行 我的工作时,我收到以下错误:
Could not deserialize the input event as Json. Some possible reasons:
1) Malformed events
2) Input source configured with incorrect serialization format
根据您的代码示例,您的输入似乎采用以下形式:
Name;
AA7509E7-D482-459B-9689-456A0F952B44;
那么您看到的错误消息是正确的,这是无效的 JSON,因此 ASA 将无法反序列化它。您的 JSON 字符串应如下所示:
{
"Name": "AA7509E7-D482-459B-9689-456A0F952B44"
}