Getting Ajax to work: aData.length is null error

Getting Ajax to work: aData.length is null error

PaulusPaulus Posts: 69Questions: 17Answers: 5

I'm getting aData.length is null error, what is wrong with my Json format. It is generated by the Web API Json method.
The "database" name is SystemUser. Checking the results in Fiddler, the response is

HTTP/1.1 200 OK
Cache-Control: no-cache
Pragma: no-cache
Content-Length: 291
Content-Type: application/json; charset=utf-8
Expires: -1
Server: Microsoft-IIS/10.0
X-AspNet-Version: 4.0.30319
X-SourceFiles: =?...?=
X-Powered-By: ASP.NET
Date: Sat, 17 Dec 2016 04:53:14 GMT

[{"UserID":"11111","UserName":"1111","AuthorityLevel":"1"},{"UserID":"22222","UserName":"2222","AuthorityLevel":"2"},{"UserID":"33333","UserName":"3333","AuthorityLevel":"3"},{"UserID":"44444","UserName":"4444","AuthorityLevel":"4"},{"UserID":"55555","UserName":"5555","AuthorityLevel":"5"}]

This question has an accepted answers - jump to answer

Answers

  • PaulusPaulus Posts: 69Questions: 17Answers: 5
    Answer ✓

    The format is wrong, I have found the solution, sorry.

  • allanallan Posts: 63,089Questions: 1Answers: 10,387 Site admin

    Thanks for posting back. Good to hear you have it working now.

    Allan

This discussion has been closed.