Here is a template of my JSON:
{
"field 1": [
{
"id": "123456"
},
{
"about": "YESH"
},
{
"can_post": true
},
{
"category": "Community"
}
],
"field 2": [
{
"id": "123456"
},
{
"about": "YESH"
},
{
"can_post": true
},
{
"category": "Community"
}
]
}
I would like to convert this JSON into a csv in the following format using Python:
0 field 1, id, about, can_post, category
1 field 2, id, about, can_post, category
I tried using pandas to read_json and then to_csv but it didn't work.
Thanks
field1