How to check if response in certain format?
Options
![William](https://us.v-cdn.net/6037124/user_avatars/3334975.jpg)
William
Member ✭
I have an external api that return object as { "error":"abc"} if the request occurs and the actual json if there is a result.
How do I check is "error" is returned? I see that there no filter called isDefined or something like that? Can you help?
How do I check is "error" is returned? I see that there no filter called isDefined or something like that? Can you help?
Comments
-
I might just add a Conditional and say something like
WHERE
var: your_response
| GET |
path: error
default: null
Does not equal
null
THEN
whatever logic you need if the error is in the object.
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