I have the following jquery script
success: function(data) {
                    //$("#divReport").html(CreateReportHTML(data));
                    $.each(data, function(key, value) {
                        createDynamicTable($("#tbReport"), key, 5);
                    });    
                    $("#btnViewReport").attr("disabled",false);
                    $("#btnExportToExcel").attr("disabled",false);
                },
from the above, "key" is meant for index as you know while "value" has the columns. The values are retirved like value.FirstName, value.LastName etc.
I need to get the number of columns available in "value" from $.each. How will I find it ? I tried value.length, which is not working.
 
     
     
    