kevinmickey / django-prettyjson

Enables pretty JSON viewer in Django forms, admin, or templates
BSD 3-Clause "New" or "Revised" License
139 stars 21 forks source link

*Quick* Parsed JSON in Template #16

Closed Ademord closed 6 years ago

Ademord commented 6 years ago

I can't seem to figure out how to do ` {% load prettyjson %} {% prettyjson_setup %}

{% prettyjson mydict %}

` and just show the json already pretty-fied/rendered ?

Help pls!

kevinmickey commented 6 years ago

Thanks for your feedback -- you can now use:

{% prettyjson mydict initial='parsed' %}

Fix is now in v0.4.0

Ademord commented 6 years ago

Thanks you're awesome!