handle an arrray posted with $.ajax (jquery) to a webservice
- by burktelefon
I'm trying to post data to a webservice (asp.net 3.5), like below (two variants, one commented):
var array = [3, 2, 5, 1, 7];
var jsonString = JSON.stringify(array);
//var jsonString = '{ "firstName": "John", "lastName": "Smith", "age": 25, "address": { "streetAddress": "21 2nd Street", "city": "New York", "state": "NY", "postalCode": "10021" },…