So I've got this huge amount of data in a php-file but it is in json-format.
I have tried converting it putting all the json into one $string variable. Then:
$json = json_decode($string);
foreach($json as $key => $value) {
echo $value;
}
This doesn't work though so I'm woundering how I can put all this data into a mysql-database instead (or arrays).
This is a small part of the data.
[{
"namn":"ABF VUX",
"schoolID":"85740",
"stad":"G\u00f6teborg",
"PeriodDropDownList":false,
"FreeTextBox":false,
"code":"680378",
"lan":"V\u00e4stra G\u00f6talands l\u00e4n",
"WeekDropDownList":true,
"TypeDropDownList":true,
"startTid":"-"
},
{
"namn":"Adolf Fredriks Musikklasser",
"schoolID":"29320",
"stad":"Stockholm",
"PeriodDropDownList":true,
"FreeTextBox":true,
"code":"",
"lan":"Stockholms l\u00e4n",
"WeekDropDownList":true,
"TypeDropDownList":true,
"startTid":"8:15"
}]