Convert JSON to CSV

I’m trying to convert JSON to CSV

[
{
“name”: “Harry Potter”,
“city”: “London”
},
{
“name”: “Don Quixote”,
“city”: “Madrid”
},
{
“name”: “Joan of Arc”,
“city”: “Paris”
},
{
“name”: “Rosa Park”,
“city”: “Alabama”
}
]
this is response from my API,

Can someone help me please.