[ resolved] Changing a response to an array or an object instead of a string
Options
I have a POST API setup that posts three inputs and encrypts each one. The API runs fine in XANO but is running into an issue with my front-end.
The front-end team have identified that the issue is that the API returns the crypto_1 variable as a string, and that this needs to be changed to an array or an object.
I feel like the above is a simple change but I cannot figure out how to implement it. Any help would be greatly appreciated!
I've attached screenshots of the endpoint and the overview of the change that needs to be implemented:
[Screenshot 2021-11-07 at 10.31.29.png][Screenshot 2021-11-07 at 10.33.40.png]
Thanks!
The front-end team have identified that the issue is that the API returns the crypto_1 variable as a string, and that this needs to be changed to an array or an object.
I feel like the above is a simple change but I cannot figure out how to implement it. Any help would be greatly appreciated!
I've attached screenshots of the endpoint and the overview of the change that needs to be implemented:
[Screenshot 2021-11-07 at 10.31.29.png][Screenshot 2021-11-07 at 10.33.40.png]
Thanks!
Comments
-
,
In your screenshot you can specify a value in the AS entry. By leaving it blank it is interpreted as itself, but if you specify a value for that - "var1" in this example, you will get exactly what you want. -
Thanks Sean, all working!
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