PricingDocsAcademy
Bluesky ...
Tue, Dec 3, 2:29 AM

List json key value pair

  • zefunha

    10 days ago

    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

    10 days ago

    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

    10 days ago

    Yeah so am looking for an easy way to match the key and value and display them on the div/list
  • zefunha

    10 days ago

    Pulling from a third party api
  • Lucas G

    10 days ago

    What do you mean by match the key and value
  • Are you just trying to repeat over the API data?
  • zefunha

    9 days ago

    Yeah repeat all the of the api results but at the minute am just repeating the value not the key
  • Tom Ireland

    9 days ago

    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.
  • zefunha

    9 days ago

    I'll try this later
    πŸ‘1
  • Tom Ireland

    9 days ago

    Let us know how you get on.
  • Lucas G

    9 days ago

    Can you show the repeat and what you are trying to accomplish
  • /attachments/1309635257007472729/1310277781237534740/rn_image_picker_lib_temp_f55d7eb9-26ca-4d35-8a19-6df6cabfa611.jpg

    zefunha

    8 days ago

    rn_image_picker_lib_temp_f55d7eb9-26ca-4d35-8a19-6df6cabfa611.jpg
  • 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
  • Tom Ireland

    8 days ago

  • zefunha

    8 days ago

    Thank you soo much
  • That worked,
    πŸ™Œ1
  • zefunha

    8 days ago

    Are you Scottish? Or ulster accent
  • I must start using tella, I think it would help with troubleshooting
  • Tom Ireland

    8 days ago

    I'm Scottish, aye.
  • Tom Ireland

    8 days ago

    Yeah, it's a great tool. Way better the Loom imo.

Stop scrolling. Start building.

toddle is a visual web app builder that rivals custom code β€” but accessible to your entire team!

Try toddle β€” it's free!

Β© Copyright 2024 toddle. All rights reserved.