Pretty-print event JSON in debug viewer