I have an object with 2 ArrayList properties.
public class TestDTO
{
public ArrayList Test1 { get; set; }
public ArrayList Test2 { get; set; }
}
I am returning the the object as JSON in my JsonResult Action. The SUCCESS from my AJAX call looks like the following but it does not appear to be working. What do I need to do to access the serialized array from the object?
success: function(data) {
var counter = 1;
jQuery.each(data.Test1, function() {
$("#DataFields" + counter).val(this);
counter++;
});
},