gpt4 book ai didi

azure - 逻辑应用: Finding element in Json Object array (like XPath fr XML)

转载 作者:行者123 更新时间:2023-12-01 23:37:36 25 4
gpt4 key购买 nike

在我的逻辑应用中,我有一个 JSON 对象(从 API 响应解析),它包含一个对象数组。

如何根据属性值找到特定元素...下面的示例,我想在其中找到(第一个)事件元素

{
"MyList" : [
{
"Descrip" : "This is the first item",
"IsActive" : "N"
},
{
"Descrip" : "This is the second item",
"IsActive" : "N"
},
{
"Descrip" : "This is the third item",
"IsActive" : "Y"
}
]
}

最佳答案

好吧...答案显而易见...有一个 FILTER ARRAY 操作,它适用于 JSON 对象(来自 PARSE JSON 操作)..将其与 结合起来@first() 表达式将给出所需的结果。

enter image description here

关于azure - 逻辑应用: Finding element in Json Object array (like XPath fr XML),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/51608394/

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