I want to know how can I retrieve the values from the json if the json returns an array of result?
Note: the first array is not the same length of the second array but the first array is will be always be less than the second array
Here's what I do as of now and get this error:

Here's my jquery code:
success: function(data){
var toAppend = '';
if(typeof data === "object"){
for(var i=0;i<data.length;i++){
toAppend += '<tr><td colspan="2">'+data[0][i]['m-asin'][0]+'</td></tr>';
toAppend += '<tr><td>'+data[1][i]['asin'][0]+'</td><td>'+data[1][i]['size'][0]+'</td></tr>';
}
$('.data-results').append(toAppend);
}
}
ANd I think no need for php code since it is working because it returns the expected results. Any help will be a big thing thanks!