title: Send form data with jquery ajax json
body: <p>I'm new in PHP/jquery
  I would like to ask how to send json data from a form field like (name, age, etc) with ajax in a json format. Sadly I can't found any relevant information about this it's even possible to do it dynamically? Google searches only gives back answers like build up the data manually. like: <code>name: X Y</code>, <code>age: 32</code>, and so on.</p>
  
  <p>Is there anyway to do that?</p>
  
  <p>Thanks for the help!</p>
  
  <p>Edit:</p>
  
  <pre><code>&lt;form action="test.php" method="post"&gt;
  Name: &lt;input type="text" name="name"&gt;&lt;br&gt;
  Age: &lt;input type="text" name="email"&gt;&lt;br&gt;
  FavColor: &lt;input type="text" name="favc"&gt;&lt;br&gt;
  &lt;input type="submit"&gt;
  &lt;/form&gt;
  </code></pre>