Seeking guidance on converting JSON values to an Object without the keys. How can this be achieved?
The JSON data in question is:
[
{
"WebsiteName": "Acme Inc.",
"Time": "08:30:00",
"TheDate": "2021-12-23",
"Hits": "39"
},
{
"WebsiteName": "Acme Inc.",
"Time": "08:45:00",
"TheDate": "2021-12-23",
"Hits": "37"
}
]
The desired format, excluding the names, is as follows:
var myObject = [["Acme Inc.", "08:30:00", "2021-12-23", "39"], ["Acme Inc.", "08:45:00", "2021-12-23", "37"]];
This transformation needs to be generic so that it can be applied to other JSON files in the future without modification.