Finished assignment. However, I could find a standard library function that would encode my json list to html, so I did it myself.