gpt4 book ai didi

azure - 如何在 LogicApp 中解析消息后删除 JSON 中的部分

转载 作者:行者123 更新时间:2023-12-03 05:17:21 25 4
gpt4 key购买 nike

已解析的消息{“日期”:“2022-02-04”,“客户ID”:123,“客户信息”: {“id”:123,“姓氏”:“史密斯”,“名字”:“大卫”,“电子邮件”:“测试[email protected]”,},“货币”:“欧元”}

我想删除 customerInfo 部分,以便 JSON 看起来像这样。{“日期”:“2022-02-04”,“客户ID”:123,“货币”:“欧元”}

如何在 LogicApp 中执行此操作。我尝试删除属性,但无法正常工作。如有任何建议,我们将不胜感激。

最佳答案

我已在我的环境中复制并使用删除属性删除客户信息,如下所示:

首先,我初始化了一个变量,如下所示:

enter image description here

然后我使用了如下的撰写操作:在撰写输入中:removeProperty(variables('emo'),'customerInfo') enter image description here

然后我用 compose 的输出设置了变量,如下所示: enter image description here

输出:

enter image description here

enter image description here

enter image description here

enter image description here

尝试按照上述过程操作,您将像我一样删除 customerInfo。

关于azure - 如何在 LogicApp 中解析消息后删除 JSON 中的部分,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/74330920/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com