Convert x-www-form-urlencoded to json
Options
![Mauro Mequelussi-1595850](https://us.v-cdn.net/6037124/user_avatars/1595850.jpg)
Mauro Mequelussi-1595850
Member ✭
How do I transform a webhook received in xano from x-www-form-urlencoded format to a json?
Comments
-
Hey Mauro,
That format just means it is arriving to Xano in in the following pattern: name1=value1&name2=value2
Xano automatically decodes that for you if you specify inputs. If you wanted to convert that to json, then it would be building a new object with key value pairs.
So lets say you create 2 inputs = test1 and test2.
Then you would create a new variable called
JSON1 = {}
set(test1, input:test1)
set(test2, input:test2)
That would be the pseudocode. There may be an easier way to do this, but I would need an example. -
I need to get the input data via Utility Functions --> Get All Input because the structure can be different, so the best solution is to convert to json.
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