|
Hi folks, I'm sure I'm missing something really obvious, but this has me stumped... I'm making an API request using sqlpage.fetch, and getting a fairly large and complex json object back. Part of that object (and the bit I actually care about!) is an array of data. I can dump that out to a code component, no problem. How do I actually use it for something useful? For example, use the array as the source for a list? I don't want to insert that data into a table, I just need to display it. Thanks in advance! |
Answered by
lovasoa
Jan 23, 2025
Replies: 1 comment 3 replies
|
Hi! Let me know if it's useful or if there are things I should change. |
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment

The various json functions documented in the article are not restricted to working with values coming from the database, and they work just as well with values coming from SQLPage.
Example
Here is an example using SQLite json functions to display an array from inside an API call result as a list using the default sqlpage list component :
(using https://pokeapi.co/ as an example api)
Results
https://editor.datapage.app/edit