I was trying to make the data I'm having with me to a much more readable and easily understandable format. But I was stuck with it. is it possible to convert it into a readable format?
The data I'm having is in the format below
[
{
"c": [
{
"v": "Food Truck: The Vegan"
},
{
"v": "06/02/2022 16:00:00"
},
{
"v": "06/02/2022 21:00:00"
},
{
"v": "06/02/2022"
}
]
},
{
"c": [
{
"v": "Food Truck: Lob Dogs"
},
{
"v": "06/03/2022 16:00:00"
},
{
"v": "06/03/2022 21:00:00"
},
{
"v": "06/03/2022"
}
]
}}]
I want to convert it to a much more readable format like the example given below.
{
"name": "Food Truck: The Vegan Table",
"start_date": "06/02/2022 16:00:00",
"end_date": "06/02/2022 21:00:00",
"date": "06/02/2022"
},
{
"name": "Food Truck: Lob Dogs",
"start_date": "06/03/2022 16:00:",
"end_date": "06/03/2022 21:00:00",
"date": "06/03/2022"
}
]
How should I do this in javascript?