aaData is undefined?

aaData is undefined?

midnamidna Posts: 3Questions: 0Answers: 0
edited February 2010 in General
Sorry to bother you with this but I'm fairly confused.

I get a message that a.aaData is undefined. (a being my json variable). Now if I print a it looks just like the json that php is returning, but for some reason I can't access aaData. I'm sure this is something very simple and stupid, but I'm just not seeing it. Thanks for any help!

The json that is being returned by the php looks like this:

{
"sEcho": 1,
"iTotalDisplayRecords": 8,
"aaData": [
[
"8",
null,
"0",
"0",
null,
"2010-02-02 13:06:00",
"2010-02-02 13:06:00",
"2010-02-24",
"2010-02-27",
"street",
"city",
"oh",
"44720",
"complete",
"More services",
"0",
"1",
"0"
],
...
]
}

http://www.jsonlint.com/ verifies that it is valid json.

Replies

  • midnamidna Posts: 3Questions: 0Answers: 0
    I determined what the issue was. I had changed the getjson to post and forgot to tell it to expect json back :(
This discussion has been closed.