Pues la sintaxis que muestras ni siquiera es válida.
Código PHP:
Ver original 0 => "{
"metadata.title": "",
"metadata.description": "",
"metadata.keywords": "",
"metadata.robots": "",
"metadata.author": "",
"config.enable_comments": "0",
"config.primary_category": "27"
}",
1 => "{
"metadata.title": "",
"metadata.description": "",
"metadata.keywords": "",
"metadata.robots": "",
"metadata.author": "",
"config.enable_comments": "0",
"config.primary_category": "27"
}"
);
Además, aunque lo niegues, las claves del código JSON original no son numéricas, observa:
Código PHP:
Ver original$json = <<<JSON
{
"metadata.title": "",
"metadata.description": "",
"metadata.keywords": "",
"metadata.robots": "",
"metadata.author": "",
"config.enable_comments": "0",
"config.primary_category": "27"
}
JSON;
echo $data['config.primary_category']; // 27
¿Seguro?