code: def pprint(data):
      
      pretty = json.dumps(data, sort_keys=True, indent=4, separators=(",", ": "))
      html = pretty.replace(" ", "&nbsp;").replace("\n", "<br>")
      return mark_safe("<code>%s</code>" % html)
docs: Returns an indented HTML pretty-print version of JSON.
  
      Take the event_payload JSON, indent it, order the keys and then
      present it as a <code> block. That's about as good as we can get
      until someone builds a custom syntax function.