Sending JSON collection to ASMX webservice
- by Mironline
I have got this json collection in page :
var json=
{
"Elements":
[
{"Alignment":null,"Bold":false},
{"Alignment":null,"Bold":false}
],
"Front":true,
"ThemeID":"9"
};
I've generated this JSON in run-time & posted to page.
my question is , What is the best solution to send this json to web-service using jQuery.
should I use the JSON.stringify method and sent it as as string ? if yes what is the input type in web-service ?
can I send it as an object to web-service and set the List<CusomeObject> as input ? in this case how can I implement that ?