title: Passing JSON array to Java Springs controller
body: <p>I am trying to pass this JSON to a Springs Controller:</p>
  
  <pre><code>{"orderList":["IS_cb-A1-3","IS_cb-A1-4","IS_cb-A1-1","IS_cb-A1-2","IS_cb-A1-3"]}
  </code></pre>
  
  <p>Here is the method declaration:</p>
  
  <pre><code>public @ResponseBody JsonResponse orderCertificates(@ModelAttribute CertificateRequest certificateOrder, BindingResult result )
  </code></pre>
  
  <p>And here is the bean:</p>
  
  <pre><code>public class CertificateRequest {
  private String[] orderList = null;
  private List&lt;String&gt; mbsResponse = new ArrayList&lt;String&gt;(); 
  
  public String[] getOrderList() {
      return orderList;
  }
  
  public void setOrderList(String[] orderList) {
      this.orderList = orderList;
  }
  
  public List&lt;String&gt; getMbsResponse() {
      return mbsResponse;
  }
  
  public void setMbsResponse(List&lt;String&gt; mbsResponse) {
      this.mbsResponse = mbsResponse;
  }
  }
  </code></pre>
  
  <p>I don't know how to build this bean (which doesn't work) so that I can get to this array. Any help would be appreciated.</p>