How to use getJSON() method and make to visible in pug/html

I’ve made a comment page using nodejs and mongoDB. I’ve got it to the step where i get the data in the form of a JSON format. Now i want to convert it to a simple readable form in the pug/html page…

Here is the image of the data I’ve received from the database.
enter image description here

This is just a single line list element… i would also want to make a box and the data in a specific format like…

<div id="display>

 <THE USERNAME HERE>

 <THE TOPIC HERE>
 
 <THE COMMENT HERE...>

</div>

And here is the image of the way im using getJSON() method.
enter image description here

I need the data under the display div in the pug/html file.

Thank you.