How to display JSON data in Django webpage like in JSON viewer? [closed]

I'm creating a webpage in Django that will display the contents of a JSON file in the database. So far, I was able to display the raw JSON output in my webpage like this.

{ 
  "name": "John", 
  "age": 22, 
  "gender": "male"
}

But I also intended to display the "beautify" version of this in my webpage like in any JSON viewer. Any idea on how to implement this in my code?

Back to Top