Following code:
$.ajax(serviceUrl,
{
data:
format: 'json'
id: [2,3,4]
success: (data) ->
successCallback(data) if successCallback
error: (error) ->
failureCallback(error) if failureCallback
})
Sends request with following query string parameters:
format:json
id[]:2
id[]:3
id[]:4
Is it possible to somehow avoid those brackets at the end of parameter?