My nested object/dictionary looks like the following. All the hierarchal fields would have the parent name added as the first value in the column. So for instance "properties" { "displayOnlyNewOrChangedRecords": false}
would be a column with properties_displayOnlyNewOrChangedRecords as the column name. Similarly, for query, I would have query_fields, query_filter, and query_sortBy_fieldId as separate columns. Any way to do it without hardcoding the data?
{
"description": "",
"id": "1",
"name": "List All",
"properties": {
"displayOnlyNewOrChangedRecords": false
},
"query": {
"fields": [],
"filter": "",
"formulaFields": [],
"groupBy": [],
"sortBy": [
{
"fieldId": 6,
"order": "DESC"
}
],
"tableId": "bsjuwuqzy"
},
"type": "table",
"usedCount": 2,
"usedLast": "2022-08-09T16:32:00Z"
}
How can I store the above mentioned object as a csv using python? Thank you!