XF 2.2 Best way of displaying a 'raw' array other than using XF's dump?

Kevin

Well-known member
I'm working on an add-on that displays information to the user in a pop-up modal. The source of the values to be displayed is a JSON encoded array stored in a column in the DB. When viewing the info' I want to show the 'raw' unformatted data, the array, to the user. Turns out that the XF dump command works perfectly for that. :D

But is that really the best way of doing it? 🤔 Is there a better alternative for displaying the raw unformatted array in my template output instead of using the dump command but is still nicely formatted like the dump?
 
Back
Top Bottom