title: jQuery serialize an object?
body: <p>Say I have something like:</p>
  
  <pre><code>var obj = {id: 1, name: "Some name", color: "#444444" };
  </code></pre>
  
  <p>I want to serialize that object. I tried:</p>
  
  <pre><code>$(obj).serialize();
  </code></pre>
  
  <p>but that didn't work.</p>
  
  <p>Any ideas?</p>