i'm new with ionic ,angular and firebase. this is maybe a ridiculous question :)

i'm working with ionic + firebase to make an app, i want to make a JSON from multiple input. i have an interface like below ( image).

[![enter image description here](https://i.stack.imgur.com/5dRm8.png)](https://i.stack.imgur.com/5dRm8.png) 

what should i do to make a JSON from 'Menu' as **key** and 'Price' as **value**.
on the image above is show unexpected result, **the result must be like this** 

```
[{"yakiniku":"2000","ramen":"1200"}]

```

---

**View**

```
<div class="row">
    <div class="col">
      <div class="item item-divider">
        Menu
      </div>
      <label class="item item-input">
        <input type="text" ng-model="menu_resto[0].menu1" name="menu_resto[]" placeholder="Menu">
      </label>
      <label class="item item-input">
        <input type="text" ng-model="menu_resto[1].menu2" name="menu_resto[]" placeholder="Menu">
      </label>
    </div>
    <div class="col">
      <div class="item item-divider">
        Price
      </div>
      <label class="item item-input">
        <input type="text" ng-model="menu_resto[0].price1" name="menu_resto[]" placeholder="Price">
      </label>
      <label class="item item-input">
        <input type="text" ng-model="menu_resto[1].price2" name="menu_resto[]" placeholder="Price">
      </label>
    </div>
  </div>
  {{menu_resto}}

```

**Controller**

```
resto.controller('DaftarRestoCtrl',function($scope,DB,$firebaseArray){
  $scope.menu_resto = [];
});

```

thank you :)