title: Is it possible to pass multiple parameters for javascript JSON AJAX POST to Spring MVC controller?
body: <p>I have the already working javascript AJAX POST like this:</p>
  
  <p>Client side:</p>
  
  <pre><code>&lt;script language="JavaScript" type="text/javascript"&gt;
      var column = "test1";
      var filterType = 1;
      var values = [];
      var filter = { "column" : column, "filterType" : filterType, "values": values};
      var filter2 = { "column" : column, "filterType" : filterType, "values": values};
      filter2.column = "test2";
      var filters = new Array();
      filters[0] = filter;
      filters[1] = filter2;
  
      $.ajax({  
          url: "${pageContext.request.contextPath}/api/user_administration/get", 
          data: JSON.stringify(filters),  
          type: "POST", 
          beforeSend: function(xhr) 
          {  
              xhr.setRequestHeader("Accept", "application/json");  
              xhr.setRequestHeader("Content-Type", "application/json");  
          },
          success: function(user)
          {  
  
          }
      });
  &lt;/script&gt;
  </code></pre>
  
  <p>Server side:</p>
  
  <pre><code>@RequestMapping(value = "user_administration/get", method = RequestMethod.POST, produces = MediaType.APPLICATION_JSON_VALUE, consumes = MediaType.APPLICATION_JSON_VALUE)
  @ResponseBody
  public List&lt;User&gt; get(@RequestBody ColumnFilter[] filters)
  {
      //do something
      return userService.getAll();
  }
  </code></pre>
  
  <p>Now I want to pass two or more parameters. Something like this:</p>
  
  <pre><code>@RequestMapping(value = "user_administration/get", method = RequestMethod.POST, produces = MediaType.APPLICATION_JSON_VALUE, consumes = MediaType.APPLICATION_JSON_VALUE)
  @ResponseBody
  public List&lt;User&gt; get(@RequestBody ColumnFilter[] filters, @RequestBody ColumnSorter[] sorters)
  {
      //do something
      return userService.getAll();
  }
  </code></pre>
  
  <p>Is it possible to achieve this? How?</p>
  
  <p>(I already am aware that I can just encapsulate them into another object/class/entity)</p>