title: How to push named Json Array Into Json Object
body: <p>I want to push below data. I want order the items, it consists of     following fields:</p>
  
  <pre><code>var OrderItem = {"itemid":item.itemid,"itemname":item.itemname,"qty":1,"itemprice":item.itemprice};
  </code></pre>
  
  <p>But I want to Store Like this </p>
  
  <pre><code>{
      "Items": [
          {
              "itemid": 50,
              "itemname": "sample",
              "itemprice": 124,
              "qty": 1
          },
          {
              "itemid": 52,
              "itemname": "sample",
              "itemprice": 124,
              "qty": 1
          }
      ]
  }
  </code></pre>
  
  <p>Controllers:</p>
  
  <pre><code> $scope.addnew=function(item){        
    var OrderItem= {"itemid":item.itemid,"itemname":item.itemname,"qty":1,"itemprice":item.itemprice};     
          NewOrderService.addOrderitems(OrderItem);
      }
  
  }
  </code></pre>
  
  <p>Services:</p>
  
  <pre><code>servctrl.service("NewOrderService", function(NewOrderFactory) {
  
      this.addOrderitems = function(orderitemnew) {
           NewOrderFactory.AddOrdernew(orderitemnew);
      }  
  });
  </code></pre>
  
  <p>Factorys:</p>
  
  <pre><code>factmodule.factory("NewOrderFactory",function(){
  
    var orderitemsnew=[];
  
    return {
       AddOrdernew:function(orderitemnew){
          orderitemsnew.push(orderitemnew);
       }  
     }
  });
  </code></pre>
  
  <p>How to Achieve this?</p>