I'm trying to pull data from an API and insert it into a MySQL Database. The API has over 100 objects but I can't find any information on how to do this?
I'm using node-fetch to output the Json Data but can't loop through each object? I've added a snippet of the API.
[
{
"id": 1,
"name": "Device_1"
},
{
"id": 2,
"name": "Device_2"
}
]