Quantcast
Viewing all articles
Browse latest Browse all 82152

How can I use a 1D JSON array in DataTables?

My ASP.NET MVC controller methods return JSON in the following format:

[
{"Id":837,"Name":"aaa"},
{"Id":838,"Name":"bbb"}
]

How can I use this without converting it to a the 2D array JSON format DataTables uses in its examples?

Viewing all articles
Browse latest Browse all 82152

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>