I have a list of key value pairs like this
[
{
"date": "2020/9/15",
"amount": "10",
"desc": "test 1"
},
{
"date": "2020/9/16",
"amount": "25",
"desc": "test 2"
}
]
And I would like to convert this into like this by Python
[
["date", "amount", "desc"],
["2020/9/15", "10", "test 1"],
["2020/9/16", "25", "test 2"]
]
Do I just have to make a loop to do this? Would anyone guide me a better way to do?
Thank you so much.