How to display content of json file using jquery?
How to display content of json file using jquery?
patreeeeek
Posts: 14Questions: 7Answers: 0
Hey guys I'm getting an error: Uncaught TypeError: Cannot read property 'length' of undefined
I am using java spring.
see below for my codes and the json file
This question has an accepted answers - jump to answer
This discussion has been closed.
Answers
Looks like the JSON data is in an object called
bbData
. Datatables looks for the data in an object calleddata
by default. You can either change your server script to usedata
instead ofbbData
or you can useajax.dataSrc
to get the data frombbData
.Kevin
Hello kthorngren!
That's what I did and it worked! Thank alot!