Skip to main content
added 50 characters in body
Source Link
SSA
  • 5.5k
  • 4
  • 39
  • 52

Try to strigify the products and deserialize on server.

data.append('Products', JSON.stringify(products));

on Server (Assume product class with id, value) using JavaScriptSerializer

var serializer = new JavaScriptSerializer();
var productsStr = data["products"].ToString()
var deserializedProducts = serializer.Deserialize<List<Product>>(productsStr);

Try to strigify the products and deserialize on server.

data.append('Products', JSON.stringify(products));

on Server (Assume product class with id, value) using JavaScriptSerializer

var productsStr = data["products"].ToString()
var deserializedProducts = serializer.Deserialize<List<Product>>(productsStr);

Try to strigify the products and deserialize on server.

data.append('Products', JSON.stringify(products));

on Server (Assume product class with id, value) using JavaScriptSerializer

var serializer = new JavaScriptSerializer();
var productsStr = data["products"].ToString()
var deserializedProducts = serializer.Deserialize<List<Product>>(productsStr);
Source Link
SSA
  • 5.5k
  • 4
  • 39
  • 52

Try to strigify the products and deserialize on server.

data.append('Products', JSON.stringify(products));

on Server (Assume product class with id, value) using JavaScriptSerializer

var productsStr = data["products"].ToString()
var deserializedProducts = serializer.Deserialize<List<Product>>(productsStr);