In the “Add-on details > description” section, I’ve tried pasting nicely formatted JSON, but the white spacing wasn’t preserved and it didn’t look too great!
I tried using HTML’s pre tag, but that failed. I also tried some markdown beginning with back ticks followed by javascript and ending with back ticks, but that equally failed!