title: How do I pass an array to a Spring controller method with jquery ajax
body: <p>Here's my ajax call:</p>
  
  <pre><code> $.ajax({
       type: 'GET',
       url: contextPath + '/test/location',
       data: {'objectValues': object.objectValues },
       datatype: 'json',
       success: function( data ) {
       var obj = jQuery.parseJSON( data );
       }
     });
  </code></pre>
  
  <p>it gives me this URL:</p>
  
  <p>http://localhost:8080/test/location?objectValues[]=1234567890&amp;objectValues[]=0987654321</p>
  
  <p>My Spring method signature looks like this:</p>
  
  <pre><code>@RequestMapping(value = "/location", method=RequestMethod.GET)
      public @ResponseBody String loadLocation(@RequestParam(value="objectValues", required=false) String[] objectValues)
  </code></pre>
  
  <p>Why do I keep getting null for the value of objectValues?</p>