title: post json object in Angularjs
body: <p>i ask this question ago but don't get answer. i have a form that by filling it create json object and post to server.this form repeat in several time.
  The data entry forms can be repeated several times.</p>
  
  <pre><code>&lt;div ng-repeat="office in offices"&gt;
     &lt;input type="text" ng-model="officeName"&gt;
     &lt;input type="text" ng-model="office.employee"&gt;
     &lt;input type="text" ng-model="office.employee"&gt;
     &lt;button ng-click="addOffice()"&gt;Add New Office&lt;/button&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>suppose my objects are </p>
  
  <pre><code>public class FormData{
     private List&lt;Data&gt; all;
  }
  public class Data{
    private String officeName;
    private List&lt;Employee&gt; list;
  }
  public class Employee{
    private String name;
  }
  </code></pre>
  
  <p>how create json objects and bind data that get from form bind to this objects?
  And how create form entry data?(how set ng-model)</p>