List of objects to JSON to Html Table?
Posted
by DaveDev
on Stack Overflow
See other posts from Stack Overflow
or by DaveDev
Published on 2010-03-29T18:57:55Z
Indexed on
2010/03/29
19:03 UTC
Read the original article
Hit count: 511
If I have a list of objects
IEnumerable<MyType> myTypes;
Is it possible for me to return this to the client as JSON
return Json(myTypes);
and if so, is it possible for me to convert this (now JSON format) list to a when it gets to the client?
Is there any jQuery plugin to do this?
The thing is, there's loads of other stuff I need to send as JSON also, so generating a table with a PartialView and embedding that into the JSON is a extra complexity that I'd like to avoid. Thanks.
© Stack Overflow or respective owner