Convert array to json
Options
![AgIQ](https://us.v-cdn.net/6037124/uploads/userpics/1D4YZKG6BA58/n7X0F1KCG6JF6.png)
AgIQ
Member ✭
Hi, I have an array and I would like to transform that into a typical json payload. Any suggestions? It comes from an api call, csv_encode step.
Comments
-
What we are looking at is JSON. Perhaps you wanted a more specific representation? Do you mean you want to refactor this into an array of objects, using the first row as the keys, and then mapping to the values repeatedly?
-
Hi Ray, Thanks for your willingness to help. I think this just shows my lack of programming terminology 😂
I wanted the data to be is a format like this:I got the video from support and it does exactly what I was looking for (using the csv_decode part)
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