No data available in table
No data available in table
![murbulat](https://secure.gravatar.com/avatar/fcb6c7da114308efaaaf785fe890d228/?default=https%3A%2F%2Fvanillicon.com%2Ffcb6c7da114308efaaaf785fe890d228_200.png&rating=g&size=120)
Hi all. ![:) :)](https://datatables.net/forums/resources/emoji/smile.png)
Help solve the problem.
My** <script> ** looks like this:
https://live.datatables.net/bihawepu/5690/edit
The link itself that I use gives such data:
{"data":
{"data":
[
{"id":"164589","fio":"Famas","dt......}
How do I make a query correctly so that the table works?
Thanks
This question has an accepted answers - jump to answer
Answers
** dataSrc: function ( data ) {
data = JSON.parse(data);
return data;
}**
I also found such a function here, but it didn't help
Looks like the JSON data is a
data
object inside anotherdata
object. UsedataSrc: 'data.data'
: https://live.datatables.net/bihawepu/5691/edit .Allan
Yes, you are a genius, my friend. Thank you very much, I've been puzzling over this task for 2 days.