title: How to convert Object to Array of Objects in AngularJs?
body: <p>This is my Code</p>
  
  <pre><code>"type":{"0":   
          {   "label":"name",
      "required":false,
      "type":"String",
      },
      "1":
          {   "label":"email",
      "required":false,
      "type":"String",
      }
     }
  </code></pre>
  
  <p>In the above code I have <code>Type</code> object which contains two nested objects. Now I want to convert that object to array of objects in the following format using angularjs.</p>
  
  <p>OutPut should be like this:-</p>
  
  <pre><code>"type":[
          {   "label":"name",
      "required":false,
      "type":"String",
      },
          {   "label":"email",
      "required":false,
      "type":"String",
      }
     ]
  </code></pre>