Traversing JSON with dynamic data

Options
lixia
lixia Unconfirmed, Member
edited August 2023 in ❓Other questions

Slack's interactivity webhook sends JSON payloads with dynamic values. For example, with the object "yH5Qy" being dynimc, Is there a way to traverse this JSON to grab "Title 1" from the following example?


"values": {
"yH5Qy": {
"input_title": {
"type": "plain_text_input",
"value": "Title 1"
}
}
}

Answers

  • Liz Anaya
    Liz Anaya Member, Administrator

    ADMIN

    Options

    Hi @lixia! 👋

    Welcome to the Xano Community! 🎉

    Have you tried the Get Entries object function? This allows you to get the property entries of an object as an array which you can then traverse to grab "Title 1".

    Let me know if this helps. 😊