简体   繁体   中英

Get value from json in LogicApp Two/Three Levels Down

Absolute newb question here how do I get a value two levels down in the JSON data with Azure Logic Apps? The web-hook is sending in: Image of incoming JSON

I need the value for shipping/address/city...

I have been trying to run @triggerBody()?['shipping']['address']['city'] but it can't find address (obviously I am doing something wrong).

I just need some syntax to continue and your help is greatly appreciated!

One of the workaround is to use Parse_JSON connector to get the inner values of JSON. Just use the sample Schema in Use sample payload to generate schema and it fetches the inner values. Below is the screenshot of my logic app.

在此处输入图像描述

Result:

在此处输入图像描述

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