Issues working with JSON to convert to array in PHP


I am working with a PHP importer project and I need to load a json file and parse it and iterate it (as an array) but I have been working for a while and can't figure it out how to do that with a phpadmin imported json file.

Here is what I have tried and with no results o not valid array.

$filedata = file_get_contents($mi_file_type);   $objson = json_decode($filedata);   foreach($objson AS $prop => $val) {   echo '
'. $prop .' - '. $val;  }  


$json = json_encode($json_data);  $json2 = explode('['