HTML Table to JSON Converter

Convert scraped or generated HTML tables to JSON — array of objects with the first row as keys. Useful for feeding HTML-table data into JSON-consuming code without manually transforming.