Istudent Rana

Istudent Rana

  • 1.6k
  • 226
  • 13k

Datatables.net Uncaught TypeError: Cannot read property 'len

Feb 11 2019 12:03 PM
I am using datatables.net plug in to load data in table.
I called web method in asp.net page and return
JsonConvert.SerializeObject(result)
as string;
I could see below json string as response but I do not know how to bind them with datatables.net

{"d":"[{\"Apple\":507,\"Orange\":6,\"Mango\":75,\"Peach\":638,\"City\":\"SAN ANTONIO\",\"State\":\"TX\"},{\"Apple\":507,\"Orange\":6,\"Mango\":75,\"Peach\":638,\"City\":\"SAN ANTONIO\",\"State\":\"TX\"}]"}

Answers (1)