简体   繁体   中英

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

I am currently setting up a pipeline, where I need to extract a value from a JSON response (Web activity output). This output has a period in the fieldname. How do I use this value?

The simplified output is as follows:

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

If I use @activity('GetclusterUrl').output.abc.clusterUrl I get the following error:

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

Is there a way to for example use an escape character to be able to use this value further down the pipeline?

请试试这个表达:

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM