title: How to send array from jQuery and display it in grails controller?
body: <p>I have a array that contains an array of 10 number in jquery named "winnerList" I am sending it to WinnerController from jquery using ajax as :</p>
  
  <pre><code>$.ajax({
      url: "/demoapp/winner/winners",
      type: "POST",
      data: { "winnerList": winnerList },
      success: function(data) {
          alert("Successfully sent winnerList")
      },
  });
  </code></pre>
  
  <p>Now I am receiving it inside controller using "winners" function as:</p>
  
  <pre><code>def winners(){
      print params
  }
  </code></pre>
  
  <p>I am getting result as :</p>
  
  <pre><code>[winnerList[0][]:076, winnerList[1][]:118,winnerList[2][]:102, .....winnerList[9][]:18, action:winners, format:null, controller:winner]
  </code></pre>
  
  <p>But I wanted a result of only numbers not this type of structure which i could not access. Can anyone help?</p>