I'm aiming to put a selection of info from a JSON result into MySQL via PHP. The specific issue I'm having is with accessing specific info from the JSON result, as it isn't a simple list format. Here is a screenshot of the kind of structure I'm talking about with the information I'm interested in highlighted.:
I sadly don't have enough reputation to post an image so here it is rehosted on imgur:

Under ['streams'] will be a list of 100 streams. From each of those results I want to take the highlighted information and place it into a MySQL table.
I'm fairly comfortable with simpler JSON files and easier applications of json_decode
$result = json_decode($json);
foreach ($result as $key => $value)
I'm thinking perhaps I need to use the depth variable? But finding it difficult to find much information on it.
If anyone can give me any help or point me towards a good source of info (As I have struggled to find anything) then it would be much appreciated.
If anymore information would be useful let me know and I will add it.
edit: link to json request: https://api.twitch.tv/kraken/streams?limit=2/
<?php
//import data from twitch
$json = json_decode(file_get_contents("https://api.twitch.tv/kraken/streams?limit=100/"), true);
//create a DB connection
$con = mysql_connect("CONNECTION INFO :D");
mysql_connect_db('NOPE', $con);
$result = json_decode($json);
foreach ($result as $key => $value) {
if ($value) {
mmysql_query("INSERT INTO twitchinfo (viewers, status, display_name, game, delay, name) VALUES ($value->viewers, $value->status,$value->display_name,$value->game,$value->delay,$value->name)")or die(mysql_error());
}
// end connection
mysql_close($con);
}
?>
I'm pretty much purely interested=>I'm interestedand more context instead, please.