Hellou, i am newbie and i am strugling how to convert json data array into csv format to be able to work in google spread sheet.
my data are in JSON format like bellow
{
"_msgid":"ed76c5391f37b3d7",
"payload":{
"auth_status":201,
"auth_status_message":"201: Auth Accepted",
"resp_code":200,
"resp_note":"200: OK",
"response":{
"success":true,
"inventory_details":{
"207646":{
"id":207646,
"item_id":8588008019191,
"catalog_id":"8588008019191",
"ean":"8588008019191",
"name":"Bezkofeinová – Peru – 200g",
"count_types":{
"all":4,
"expired":0,
"damaged":0,
"ordered":0,
"reserved":0,
"changed_at":"2022-09-05 20:28:41"
},
"paired_cards":[
{
"id":156420,
"type_id":0,
"size":{
"width":150,
"height":30,
"depth":250
},
"weight":210
},
{
"id":171174,
"type_id":0,
"size":{
"width":155,
"height":28,
"depth":230
},
"weight":218
},
{
"id":173330,
"type_id":0,
"size":{
"width":130,
"height":37,
"depth":230
},
"weight":218
},
{
"id":189246,
"type_id":0,
"size":{
"width":155,
"height":130,
"depth":30
},
"weight":220
},
{
"id":218392,
"type_id":0,
"size":{
"width":140,
"height":200,
"depth":40
},
"weight":218
}
]
},
and i need to have each new line for every one inventory_details like bellow:
id, item_id, catalog_id, ean, name, all, expired, damaged, ordered, reserved
207646,8588008019191,8588008019191,8588008019191,Bezkofeinová – Peru – 200g,4,0,0,0,0
thanks for advise how to proceed.