title: create json from input type array in javascript
body: <p>On submitting a form I am getting a form object and making object. Now situation is I have input type array, for example I have input type "Task links" on click plus sign each time I am adding new input type text up to five. 
  It could be three, two, five or in case I increase up to twenty in future, how I will handle it in javascript to make object, see the code below</p>
  
  <p><a href="http://prntscr.com/h8n55g" rel="nofollow noreferrer">See screenshot for better understanding</a></p>
  
  <pre><code>&lt;input type="text" name="arr[]"&gt;
  &lt;input type="text" name="arr[]"&gt;
  
  function submit_task_form (form_obj) {
  
      var get_form = document.getElementById(form_obj);
  
      var form_data = {};
      for(var i=0; i&lt;get_form.length; i++) {
          form_data.task_link = get_form[i];
      }
  </code></pre>