Convert Rows().data() to Html
Convert Rows().data() to Html
Csharper
Posts: 1Questions: 1Answers: 0
Hi All,
Could someone please show me how to convert an object returned from var data = table.rows().data(); to a JSON array.
Basically I have pages of rows in a JS DataTable and I need to post the whole dataset to the server as a JSON object or form.
I would really appreciate a quick response,
much appreciated,
Csharper
This discussion has been closed.
Answers
Try JSON.stringify
Make sure you use
toArray()
to convert the API instance to a plain array.Allan