azure - 从 Azure 队列插入逻辑应用程序中包含 Json 的不需要的字符串

标签 azure azure-logic-apps

我正在 Azure 队列中以 Json 字符串的形式插入一条消息,如下所示

[Serializable]
public class Person
{
    public string FirstName { get; set; }
}

在插入队列时,我应该收到邮件。我期望邮件内容是 json 字符串,但我收到的邮件内容如下所示

@ string 3http://schemas.microsoft.com/2003/10/Serialization/� {"FirstName":"Vikram"}

现在内容中以“@ string 3http://schemas.microsoft.com/2003/10/Serialization/�”开头的额外字符串是什么以及如何删除它。

逻辑应用程序的工作流程如下图所示,供引用

最佳答案

您可以创建一个 Azure 函数,将字符串重新格式化为 json 字符串,如下所述:http://social.technet.microsoft.com/wiki/contents/articles/34750.integrating-service-bus-stack-with-logic-apps-and-azure-functions.aspx

关于azure - 从 Azure 队列插入逻辑应用程序中包含 Json 的不需要的字符串,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/39704151/

相关文章:

python - 在 Azure Batch API 中检索处于特定状态的任务数

Azure Active Directory 组和组成员限制

node.js - 在 Azure 网站上禁用请求验证

Azure 逻辑应用步骤失败并出现错误 "BadRequest. Http request failed: the timeout was reached"

json - 在逻辑应用 ARM 模板中过滤 IP 范围

azure - 在逻辑应用程序中重新使用授权 token 响应

c# - 在 ASP.NET 中使用文件 uploader 将图像上传到 Azure Blob?

azure - Azure 中的网站更新是否会重置应用程序池?

azure - 整个逻辑应用工作流运行被标记为 "Failed",因为即使相关操作成功,操作也会失败

azure - 如何在Azure逻辑应用程序中获取计划的API响应