
I have the following jquery code:
                    $.ajax({
                        type: "POST",
                        url: "Ajax/getTableRecord",
                        data:{ i : id, t: 'mylist'},                        
                        dataType: 'json',
                        success: function(data){
                            alert(data);
                        }
When I activate this, the php function getTableRecord, queries a db and ends with:
echo json_encode($array);
I can see the correct returned data in my console. However the alert function just shows the contents of the screenshot. How do I display the returned key value pairs in the alert box instead?
 
     
     
    