loop every row and column
loop every row and column

hi
I need to create a json object of the content of the table. Need to take some data-field to put in the json object.
What happen if table is response? Could have a row who are splitted on two rows...
What should be the best way to do it?
thanks
This question has an accepted answers - jump to answer
This discussion has been closed.
Answers
Hi @marcpirat ,
Probably the best way is to use
rows().every()
, as in this example on that page:If your case, the "do something" would be to add to that JSON object.
Cheers,
Colin