title: Converting JSON object to javascript array
body: <p>I need to convert this json object:</p>
  
  <pre><code>"forms":
          {
              "Circle":
              {
                  "color" : "red",
                  "size" : "1"
              },
              "Square":
              {
                  "color" : "blue",
                  "size" : "3"
              },
              "triangle":
              {
                  "color" : "black",
                  "size" : "4"
              }
          }
  </code></pre>
  
  <p>Into an javascriptArray.
  The array should contain formType, color and size.
  I have created the following script</p>
  
  <pre><code>var formsArr=[]; 
  $.each(forms, function(i, obj){ var form={color: obj.color, size: obj.size};
                  formsArr.push(form);
  </code></pre>
  
  <p>The array only contains color and size. I want it to also containt formType ie. Circle, how can I get the key?</p>