How do I send an array of hashes as a parameter in a jQuery.get() request?
<p>I have an array of hashes in Javascript, which I need to send as a parameter in a jQuery.get() request. I've tried this:</p>

<pre><code>$.get('../notes/notes_temp_path',{temp_param:notes_array}, function(data) {
    console.log("done");                
});
</code></pre>

<p>but the server doesn't get the <code>temp_param</code> parameter. What do I need to do? Thanks for reading.</p>

<p>EDIT:</p>

<p>If I do</p>

<pre><code>for (index in notes_array) {
    console.log(notes_array[index]);
}
console.log(window.JSON.stringify(notes_array));
</code></pre>

<p>I get</p>

<pre><code>[ ]
 note_name    "note1"
[ ]
 note_name    "note2"
[[],[]]
</code></pre>

<p>The server receives this as well:</p>

<pre><code>"temp_param"=&gt;"[[],[]]"
</code></pre>
