Posted on: 10/7/2013 5:59:21 AM | Views : 678

<WebMethod()> _ <ScriptMethod(ResponseFormat:=ResponseFormat.Json)> _ Public Shared Function GetDetails() As Dictionary(Of String, Integer) Dim templist As New Dictionary(Of String, Integer) templist.Add("UnitedStates", 65) templist.Add("UnitedKingdom", 58) templist.Add("Germany", 30) templist.Add("India", 60) templist.Add("Russia", 65) templist.Add("China", 75)
Return templist End Function

how do i acces this as and array ..

$(document).ready(function () { $.ajax({ type: "POST", url: "Default2.aspx/GetDetails", contentType: "application/json", dataType: "json", success: function (msg) {

var array =msg  // not woring 

} });
}); </script>

Go to the complete details ...