How to Change Request Body Format in xano object to array
Options
Aawez Khan
Member ✭
Xano Expected:-
[Screenshot from 2022-06-15 12-43-23.png]
{
"var_1" : "123"
}
Xano Expecting:-
[Screenshot from 2022-06-15 12-44-25.png]
[{
"assignment" : 234
},
{
"assignment" : 235
}]
Thanks
[Screenshot from 2022-06-15 12-43-23.png]
{
"var_1" : "123"
}
Xano Expecting:-
[Screenshot from 2022-06-15 12-44-25.png]
[{
"assignment" : 234
},
{
"assignment" : 235
}]
Thanks
Comments
-
Hi, Aawez, are you getting one shape from a source and need to convert it to another shape for transmission? Can you share what you are getting and what you need? I have some videos about arrays and objects that could be on point: if you share more about your issue - perhaps a screenshot of what you have and what you need - I would be glad to help.
PS I appreciate the screenshots above. What I don't understand is how they relate to the question at hand. Sometimes these things are easier discussed live. Xano has office hours (next one on Thursday) and I offer 1-1 coaching sessions that would probably clear up the question and get you solved in a short period of time. -
look at the screenshot 2nd screenshot which is an array i need to change the format of request body so that i can take direct array from body rather than taking from and input parameter.
Just want how to get body data without input parameter -
Ah! Add a function, select "utility functions" and select "get all input (webhook)". The returned value should be what you are looking for I think. Can you give it a try?
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