Hi all, How do I list out the key value pair from a json object. At the moment am just listing the object only and not the key. Is there a way to list key in one div/list and the object in another
Tom Ireland
20 days ago
Nov 22, 2024, 11:15 PM
Are you looking to retrieve a value from a specific key? If so, you can use Get and pass in the key as the path, which will return the value.
zefunha
20 days ago
Nov 22, 2024, 11:17 PM
Yeah so am looking for an easy way to match the key and value and display them on the div/list
zefunha
20 days ago
Nov 22, 2024, 11:22 PM
Pulling from a third party api
Lucas G
20 days ago
Nov 22, 2024, 11:47 PM
What do you mean by match the key and value
Are you just trying to repeat over the API data?
zefunha
19 days ago
Nov 23, 2024, 8:30 AM
Yeah repeat all the of the api results but at the minute am just repeating the value not the key
Tom Ireland
19 days ago
Nov 23, 2024, 9:20 AM
It sounds like you might need either From entries or Entries(canβt recall off the top of my head) if the data returned is not an array and is an object. That should then allow you to repeat of each key and then use the repeat itemβs values as output as well.
π1
zefunha
19 days ago
Nov 23, 2024, 11:27 AM
I'll try this later
π1
Tom Ireland
19 days ago
Nov 23, 2024, 11:33 AM
Let us know how you get on.
Lucas G
19 days ago
Nov 23, 2024, 12:31 PM
Can you show the repeat and what you are trying to accomplish
zefunha
18 days ago
Nov 24, 2024, 4:16 PM
So I have a third party api and I want to list the key and value in the div on the dashboard @Tom Ireland the entries didn't seem to work