$.ajax({ type: "POST", url: "test.php", dataType: "json", }).done (function( data ) { alert(data['1']['name']); });