jQuery $.toJSON not letting me post?
<p>I have the following</p>

<pre><code>    var storage = [], obj;
    $('form input[type=hidden]').each(function(){
        obj = {};
        obj[this.name] = this.value;
        obj["spot"] = this.className
        storage.push(obj);
    });

    storage = $.toJSON(storage);
    console.log(storage);

    $.post('storage/', storage, function(data) {
        if(data == "true") {
            //window.location.href = href;
        }else{
            alert("An error has been encountered, Blah has been notified, please try again later");
        }
    });
</code></pre>

<p>and in PHP I have a simple <code>&lt;?php print_r($_POST); ?&gt;</code> and it is printing <code>Array( )</code> it does not seem to be posting the json encoded results.</p>

<p>It's driving me nuts and I have no idea what is going on lol. Any help?</p>

<p>ps. I am using <a href="http://code.google.com/p/jquery-json/" rel="nofollow">http://code.google.com/p/jquery-json/</a> as a json encoder.</p>
