如何在 Azure 数据工厂中使用字段名 JSON 中带句点的 activity 输出

How to use activity output with period in fieldname JSON in Azure Data Factory

我目前正在设置一个管道,我需要从 JSON 响应(Web activity 输出)中提取一个值。此输出在字段名中有一个句点。我如何使用这个值?

简化输出如下:

{
"aud": "https://login.----.com/auth/authentication/resources",
"abc.organisationUserCode": "----",
"abc.clusterUrl": "https://url-to-use.com",
}

如果我使用 @activity('GetclusterUrl').output.abc.clusterUrl 我会收到以下错误:

The expression 'activity('GetclusterUrl').output.abc.clusterUrl' cannot be evaluated because property 'abc' doesn't exist

有没有一种方法可以使用转义字符,以便能够在管道中进一步使用该值?

请试试这个表达式:

@activity('GetclusterUrl').output['abc.organisationUserCode']