title: How to create a json data using two arrays and return it to ajax
body: <p>key:<code>[id,name,address]</code></p>
  
  <p>value:<code>[7,John,NewYork]</code></p>
  
  <p>I wish to create a json data like<code>{"id": 7, "name": "John", "address": "NewYork"}</code> using for(...){...},</p>
  
  <p>and then return it to ajax</p>
  
  <pre><code>$.ajax({                                
      //what kind of format should json data be here? 
      data:??json data??,
      dataType: 'json',
  });
  </code></pre>
  
  <p>Please help me</p>