Usual suspects for rejected JSON?

Usual suspects for rejected JSON?

JonathansCorner.comJonathansCorner.com Posts: 5Questions: 0Answers: 0
edited May 2011 in General
I am trying to create a table with server-side processing. At present it rejected "{'iTotalRecords':128,'sColumns':['id','approved_date','approval_status','approva­l_id','reference_id','shipping_authorization_number','manufacturer_distributor_na­me','original_amount','open_amount','requestor'],'aaData':[/* 10 entries deleted */]]}", saying, "DataTables warning: JSON data from server could not be parsed. This is caused by a JSON formatting error."

I simplified the JSON, eventually reaching "{'aaData':[]}", and am still getting the same error. Are there other mistakes I could have made that would trigger this error?

Replies

  • GregPGregP Posts: 500Questions: 10Answers: 0
    don't know about other usual suspects, but the single quotes are invalid.
  • JonathansCorner.comJonathansCorner.com Posts: 5Questions: 0Answers: 0
    Thank you; that was the problem.
This discussion has been closed.