如何在 Azure 逻辑应用程序中获取 json http 响应的值

如何在 Azure 逻辑应用程序中获取 json http 响应的值

我正在尝试通过解析以下输出示例将“id”值设置为变量。 REST API 调用将返回多个值,如下所示,我只想获取用户之前通过参数值或初始化变量在工作流中提供/设置的特定名称的“id”值。 如何在 Azure 逻辑应用程序中执行此值提取?

任何帮助都非常感谢。

    [
  {
    "id": 1,
    "name": "xyz-List",
    "data": {
      "urls": [
        "*.test1.com",
        "*.test2.com"
      ],
      "type": "exact"
    },
    "modify_by": "[email protected]",
    "modify_time": "2022-06-29T21:05:27.000Z",
    "modify_type": "Created",
    "pending": 0
  },
  {
    "id": 2,
    "name": "abc-List",
    "data": {
      "urls": [
        "www.mytesting.com"
      ],
      "type": "exact"
    },
    "modify_by": "[email protected]",
    "modify_time": "2022-06-29T21:05:27.000Z",
    "modify_type": "Created",
    "pending": 0
  },
  {
    "id": 3,
    "name": "azure-list",
    "data": {
      "type": "exact",
      "urls": [
        "www.xyz.com",
        "www.azure-test.com"
      ],
      "json_version": 2
    },
    "modify_by": "[email protected]",
    "modify_time": "2022-09-26T01:25:20.000Z",
    "modify_type": "Edited",
    "pending": 0
  }
]

相关内容