I have an array and I need to get to it with jquery / ajax, the problem is that I do not know how to get to it, it's being created by php $json = Array();
then I make a push array like this:
array_push($json, array(
'nome'=>'teste'
));
and then join the arrays like this:
$result = array (
$json,
$json2,
$json3
);
giving a console log using ajax, it looks like json in chrome:
[Array[2]]
0:Array[2]
0:Object
nome: "teste"
and in ajax, success looks like this:
success: function (response) {
console.log(response);
}
How do I get to nome: "teste"
?
I tried this but did not: console.log(response.nome);
EDIT: php printing:
[[{"nome":"teste"}]]