C# 服务器上javascript对象数组使用哪种结构?
我有这个javascript对象数组,它包含来自网格的数据。我想将此数据传递到服务器端的C# 服务器上javascript对象数组使用哪种结构?,c#,javascript,json,webmethod,C#,Javascript,Json,Webmethod,我有这个javascript对象数组,它包含来自网格的数据。我想将此数据传递到服务器端的webmethod,以进行验证。这就是我的阵列的外观: gridData [ Array[6] 0: Array[0] colName: "SSN" colValue: "asd" isValid: true length: 0 __proto__: Array[0] 1: Array[0] colName: "Birt
webmethod
,以进行验证。这就是我的阵列的外观:
gridData
[
Array[6]
0: Array[0]
colName: "SSN"
colValue: "asd"
isValid: true
length: 0
__proto__: Array[0]
1: Array[0]
colName: "Birth_Date"
colValue: "01/03/2013"
isValid: true
........
....
]
数组[6]
,表示网格中6列的特定行中的数据,此数组的每个索引包含网格中单元格的数据
我现在想使用对服务器webmethod的ajax调用来验证服务器上的数据。在这方面,哪种数据结构是完美的?这样,对于
JSON
数据,它在应用程序中带来了一种更通用和“最少解析”的方法 您使用的是WebForms、MVC还是WebApi?