Create a JSON object from a HTML table.