title: How to send request parameter array to servlet using jQuery $.ajax?
body: <p>I would like to send JavaScript array to servlet using jQuery <code>$.ajax</code>.</p>
  
  <pre><code>var json=[1,2,3,4];
  $.ajax({
              url:"myUrl",
              type:"POST",
              dataType:'json',
              success:function(data){
                  // codes....
              },
              data:json
  
          });
  </code></pre>
  
  <p>When I use</p>
  
  <pre><code>request.getParameter("json");
  request.getParameterValues("json");
  </code></pre>
  
  <p>It returns null.</p>
  
  <p>How can I access the values?</p>