I do an AJAX request from mt front-end with array as parameter. Example of the array:
arr = [13, 56, 43]
When in Grails controller I print params I get arr[]:[13, 56, 43]
.
However, when in front-end array consists of only one element (arr = [25]
, for instance), then in controller I get arr[]:32
. However, I need the parameter to be the list, like arr[]:[32]
. How can I do that?