learning getjson
<p>I'm trying to get a grasp on using <code>$.getJSON</code> with an array from PHP. </p>

<p>Here's a simple example where all I want to do is output the requested info. Should the <code>alert(data)</code> return the array object? I am not alerting anything.</p>

<p>PHP file (account.php):</p>

<pre><code>$arr = array('items' =&gt; 5,'others' =&gt; 6); 
echo $arr = json_encode($arr)
</code></pre>

<p>HTML file:</p>

<pre><code>$("#unsubscribe").click(function() {
    $.getJSON("account.php?", function(data) { 
        alert(data);    
    });
}); 
</code></pre>
