asp.net - Define and send a JSON object array -


I'm looking for a way to define and send a JSON object array. I have thought how to define a JSON object, change it to a string and send it, but what about this type of array? Maybe something simple I'm ignoring ...

  var myColumnSetting = {"ColumnName": name, "ColumnIndex": index}  

change it A string for

  var myJSONText = JSON.stringify (myColumnSetting, false); << code>   

  var myColumnSettings = [{"columnname": name, "column index "Index"}, {"column name": alias, "column index": other index}]  

The column setting will be like an array of objects. Does this mean you?


Comments