Hello everyone,
I’m working with an API response that includes educational data in this case, but it’s currently structured with each piece of data as a separate string. Here’s a simplified version of the response I receive:
{
"data": [
{
"data_educations_0_companyId": "123456",
"data_educations_0_companyLink1": "https://www.linkedin.com/company/123456/",
"data_educations_0_logo": "https://media.licdn.com/dms/image/random_string/company-logo_200_200/0/random_string/logo1",
"data_educations_0_title": "Example University",
"data_educations_0_subtitle": "Computer Science",
"data_educations_0_caption": "Sep 2018 - Jun 2022",
"data_educations_1_companyId": "789012",
"data_educations_1_companyLink1": "https://www.linkedin.com/company/789012/",
"data_educations_1_logo": "https://media.licdn.com/dms/image/random_string/company-logo_200_200/0/random_string/logo2",
"data_educations_1_title": "Example College",
"data_educations_1_subtitle": "Bachelor's degree, Software Engineering",
"data_educations_1_caption": "Sep 2014 - Jun 2018"
}
]
}
I want to restructure this data into an array of objects for easier manipulation and readability. The desired format is:
{
"educations": [
{
"companyId": "123456",
"companyLink": "https://www.linkedin.com/company/123456/",
"logo": "https://media.licdn.com/dms/image/random_string/company-logo_200_200/0/random_string/logo1",
"title": "Example University",
"subtitle": "Computer Science",
"caption": "Sep 2018 - Jun 2022"
},
{
"companyId": "789012",
"companyLink": "https://www.linkedin.com/company/789012/",
"logo": "https://media.licdn.com/dms/image/random_string/company-logo_200_200/0/random_string/logo2",
"title": "Example College",
"subtitle": "Bachelor's degree, Software Engineering",
"caption": "Sep 2014 - Jun 2018"
}
]
}
Anyone an idea on how to achieve this? Preferably with vanilla Bubble. Thanks!