Here's my web method
[WebMethod(EnableSession = true)]
public string[] LoadArray()
Here's my javascript
$.ajax({
type: 'POST',
url: '/services/Service.asmx/LoadArray',
data: "{}",
contentType: 'application/json; charset=utf-8',
dataType: 'json',
success: function(arr) {
for (var i = 0; i <= arr.length; i++) {
addNewPatient(arr[i]);
}
}
});