With JSON.NET I can serialize a generic list into a JSON string:
 return Json(new { success = true, data = JsonConvert.SerializeObject(units) });
but how can I serialize a generic list into JSON objects. This would have the advantage that I do not need this on client side:
var jsonData = $.parseJSON(units);
 
     
     
    