I'm trying to pull out some json info into a table but the first object doesn't have a label like "name" it has the actual value which could be anything
{
"person": {
"Clark": [{
"lastName": "Kent",
"job": "Reporter",
"roll": 20
},{
"alterEgo": "Superman",
"powers":["strength", "lasereyes", "hair"]
}
],
"Bruce": [{
"lastName": "Wayne",
"job": "Playboy",
"roll": 30
},{
"alterEgo": "Batman",
"powers":["fighting", "gadgets", "money"]
}
],
"Peter": [{
"lastName": "Parker",
"job": "Photographer",
"roll": 40
},{
"alterEgo": "Spider-man",
"powers":["strength", "arm-goo", "wit"]
}
]
}
}
Example table
Name | alterego | Job |
---|---|---|
clark | Superman | Reporter |
Bruce | Batman | Playboy |
Peter | Photographer | Spider-man |
So I don't know how to get Clark, Bruce, and Peter into the first column of my table since I can't reference them by "name" or "firstname" or anything? And the names could be anything. Also this is just the part of the json I care about there is a lot before and after that I don't care about. Since its just a chunk of a larger json I don't think its seen as an array. Any help would be appreciated.