How to use a Mule payload to structure an HTML for email body purpose?

We have a payload as below:

{
  "API1": "UP",
  "API2": "DOWN",
  "API3": "UP"
}

We need to structure this in HTML and read(using parse template) to send it in email body as Table with 2 columns and ‘n’ rows.
We cannot hardcode this payload, it needs to be dynamic and read as payload in the flow because there might be ‘n’ number of APIs.
How to read payload in the template using HTML or JS?