Hi,
I'm trying to send some data to server using ajax method. The code is:
$.ajax( {
"dataType": 'json',
"type": "GET",
"url": sSource,
"data":aoData, //using different combinations of $.param(aoData, true) here doesn't change anything
"success": fnCallback
} );
where aoData looks like:
[
{ 'name': 'name', 'value': [1,2,3] },
{ 'name': 'name 2', 'value': 'abcd' },
]
The problem is that this data reaches web server as:
QueryDict: {u'name': [u'1,2,3'], u'name 2': [u'abcd']}
and it should be:
QueryDict: {u'name': [1, 2, 3], u'name 2': u'abcd'}
Why ajax() changes my list to a string?!