The read
operation expects an array, but you're giving it an object which has a property results
which contains the array; either make your server return the array only, or define your read
operation like this:
read: function (options) {
$.ajax({
url: "...",
dataType: "json",
type: "POST",
success: function (data) {
options.success(data.results);
}
});
}