I have the following JSON response.
[{'a':
[{'b': 1,
'c': 'ok',
'result':
[{'1': '2',
'3': 4,
'5': 6}]},
{'b': 11,
'c': 'ok1',
'result':
[{'1': '21',
'3': 41,
'5': 61},
{'1': '211',
'3': '411'}]}],
'Id': 'd0',
'col': 16}]
I want to normalize this to a dataframe in Python pandas. I know about json_normalize and have seen a couple of other SO posts on the same. However, mine seems to be more deeply nested than others and I am not able to get my head around it.
What I am expecting in my output is as follows:
===============================================================
a.b | a.c | a.result.1 | a.result.3 | a.result.5 | Id | col
===============================================================
1 | ok | 2 | 4 | 6 | d0 | 16
11 | ok1 | 21 | 41 | 61 | d0 | 16
11 | ok1 | 211 | 411 | None | d0 | 16
Any help would be greatly appreciated! Stuck with this for more than a day now!
Thank you!!