Serializes HTML tables into JSON objects.