Currently, I am faced with the challenge of parsing the given data:
{
'unknown-value': {
name: 'AB',
id: 'BLUE'
},
'unknown-value': {
name: 'AC',
id: 'PURPLE'
}
}
My objective is to parse this data and then generate arrays of values like the following:
names = ['AB', 'AC']
ids = ['BLUE', 'PURPLE']
This scenario is a bit different from what I have encountered before, as it does not involve an array of objects. Therefore, I am currently unsure of the best approach to take.