Using Get or Has filter with nested JSON
I am returning JSON from a webhook and it seems that when a value is null, they just don't include it rather than passing a null. This always produces errors when using dot notation and I am unable to capture all the data I need due to this.
I would like to implement this solution, https://community.xano.com/discussion/876844/set-ifhas-conditional-filter but I can't figure out how to use Get or Has with nested JSON as per the image (the icao field is not included in the from Airport)
Comments
-
Hi @Mike Akister - It depends what you're doing but I would recommend GET personally especially if you're adding data to your database
-
I ended up solving it using dot notation to get to the From JSON and then using a GET filter with a default value of null from that point.
-
Great! You can combine GET and dot notation, GET sort of acts like a "dot" but with the option to have that default value
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