Adding rich text to form E-mail

I have an e-mail automation that goes to the user after submitting a form. Outside the form a series of calculations are done and the result is stored in a JSON object.
I have added the JSON object to a form field via the onClick event on the Submit button and the object is stored in the collection as well as displayed in the email in it’s raw form. So far so good.

However, I have no control of the formatting of the object. Specifically I would like to parse it in the onClick handler and format the contents as a human readable table with bold headers, tabs and such.
I would then want to insert the finished rich text into the email instead of the raw JSON object.
Any suggestions to how this can be achieved, if at all?

I’d rather not build a HTML e-mail from scratch, the Wix built-in e-mails are really slick and I would like to use them if possible.

Example:

Turn this:

{
  "Preprint": {
    "Sample": "YES", 
    "E-book": {
      "Kindle": "YES", 
      "PDF": "NO"
    }
  }, 
  "Cover": {
    "Cover_weight": "240g", 
    "Cover_papertype": "Invercote G", 
  }
}

Into this:

Preprint
Sample YES
E-book
Kindle YES
PDF NO

Cover
Weight 240 grams
Type Invercote G