HTML table to JSON

Paste HTML markup and read the first table back as JSON or CSV, with colspan and rowspan expanded locally.

Only the first table in the pasted markup is read. Header rows inside a thead are used when present. Nested tables contribute their text content to the outer cell.