'cycle through output and add to database
An API call returns some data that I want to upload into the database, it returns about 5000 records. I only want to run this manually when needed.
[
{
"id": "01",
"symbol": "xyz",
"name": "xyz"
},
{
"id": "02",
"symbol": "abc",
"name": "abc"
},
{
"id": "04",
"symbol": "fhf",
"name": "fhf"
},
{
"id": "05",
"symbol": "gxfg",
"name": "gxfg"
},
]
Is there a way I can cycle through each one and upload it to a model? The model will have matching field names os ID Symbol and Name
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
