lightswitch05 / table-to-json

Serializes HTML tables into JSON objects.
http://lightswitch05.github.io/table-to-json/
MIT License
756 stars 172 forks source link

empty data array when calling tableToJSON() on my table #56

Closed Slos closed 3 years ago

Slos commented 3 years ago

I have a pretty standard table on my HTML page (see screenshot). Yet, when I try to extract the cell data I get back a empty data array.

var data = $('#testTable').tableToJSON() console.log(data)

==> []

image
Mottie commented 3 years ago

It appears that the rows are not inside a <tbody>.