Hi - I'm receiving dynamic JSON data from API endpoint
sample response:
{
"success": true,
"error": null,
"data": [{
"id": 9164,
"name": "Gilberto",
"name_short": "Class Clown",
"desctription": "Graduated 2004",
"picture": "https//:imgur.gif",
"link": "https://www.google.com",
},
{
"id": 2149,
"name": "Jose",
"name_short": "Captain Virtue Signal",
"desctription": "Graduated 2000",
"picture": "https//:imgur.gif",
"link": "https://www.bing.com",
},
{
"id": 6666,
"name": "hAcKerMans",
"name_short": "White Knight of Keyboard",
"desctription": "Graduated Whenever he wants",
"picture": "https//:imgur.gif",
"link": "https://www.facebook.com",
}
]
}
Questions is, how do I parse select data to C3 Objects (eg. "name" to text, "link" to button/sprite, & "picture" to sprite.) if they constantly change?