Código PHP:
Ver original//la variable donde esta toda la cadena se llama $cadena
/*[["tipo","id","nombre","carpeta","extra1","extra2","extra3","extra4","public_name","public_desc","extra5","extra6","extra7"],["tipo","id","nombre","carpeta","extra1","extra2","extra3","extra4","public_name","public_desc","extra5","extra6","extra7"]]
[["tipo","id","nombre","carpeta","extra1","extra2","extra3","extra4","public_name","public_desc","extra5","extra6","extra7"]]*/
//quito todas las "
//cambio los ]][[ por ],[ "
[[','],[',$cadena);
/*[[tipo,id,nombre,carpeta,extra1,extra2,extra3,extra4,public_name,public_desc,extra5,extra6,extra7],[tipo,id,nombre,carpeta,extra1,extra2,extra3,extra4,public_name,public_desc,extra5,extra6,extra7]] [[tipo,id,nombre,carpeta,extra1,extra2,extra3,extra4,public_name,public_desc,extra5,extra6,extra7]]*/
//Guardo cada registro en un arreglo llamado registros
/*
tipo,id,nombre,carpeta,extra1,extra2,extra3,extra4,public_name,public_desc,extra5,extra6,extra7
tipo,id,nombre,carpeta,extra1,extra2,extra3,extra4,public_name,public_desc,extra5,extra6,extra7
tipo,id,nombre,carpeta,extra1,extra2,extra3,extra4,public_name,public_desc,extra5,extra6,extra7
*/
//Luego guardo los datos del cada registro
$x=0;
foreach($registros as $registro){
$campos[$x]=explode(",",$registro); $x++;
}
//Para comprobar que estan todos los datos se pueden mostrar así:
for($f=0;$campos[$f][0];$f++){
echo "MOSTRANDO REGISTRO $f<br>";
foreach($campos[$f] as $campo) echo "$campo<br>";
}