Format of dot notation for nested array value
![dsturnerville](https://us.v-cdn.net/6037124/uploads/userpics/BHR69COFPEN4/nDPAWFH1P8C7B.png)
What would be the correct dot notation for highlighted nested "key:value" below. The return variable is named "results".
I tried "result.links.1.href" but received an error.
Best Answer
-
Problem resolved. The dot notation was correct. It helps if you are calling the right API endpoint in your function. :)
Answers
-
Hey there! Glad you were able to get this working!
If you are looking to quickly find the correct path within a json object/response you are able to use theSub Path
filter. You can check it out in action at about the minute mark in this video:
Essentially you can paste the entire response you receive from your external api request (varapi_1
) normally. You can paste this into the sub-path section and this will provide you with a visual tool to select which path within the response you would like to navigate to.
There is also a handy tool for visualizing JSON data externally here: -
@Lachlan Thanks! That helps.
Categories
- All Categories
- 53 ? Announcements
- 47 ? Releases
- 37 ? Welcome
- 983 ? Help! I'm a Noob
- 125 ? No-Code Front-Ends
- 633 ? Working with APIs
- 439 ? Transforming data
- 126 ? Connect Xano to ...
- 50 ?? Find an Expert
- 348 ❓Other questions
- 35 ? Security
- 22 ✂️ Snippets
- 19 ? Showcase
- 7 ?️ Xano Chatter
- 62 ? Video Tutorials
- 171 ? Request a feature
- 229 ? Report a Bug
- 19 ? Templates & Extensions
- 7 ? Feedback