Generating dynamic table based on JSON data