title: Getting the number of properties in JQuery object
body: <p>I'm trying to figure out how many properties are in the following object. Obviously, I can see 2, but I need to know dynamically.</p>
  
  <pre><code>var test = $.parseJSON('{ "ddSize": "Size", "ddColor": "Color" }');
  </code></pre>
  
  <p>If I try:</p>
  
  <pre><code>var mylen = test.length;
  </code></pre>
  
  <p>.length is undefined. The number of properties in this object will change. Sometimes it's 1, sometimes 2 or 3, but I just can't figure out how to test it.</p>