I am making an AJAX request from mt front-end with an array parameter. Array example:
arr = [13, 56, 43]
When I print params in the Grails controller, I get arr[]:[13, 56, 43] . However, when there is only one element in the interface array ( arr = [25] , for example), then in the controller I get arr[]:32 . However, I need a parameter that should be a list, for example arr[]:[32] . How can i do this?
user721588
source share