Remove section titles and comments from JSON output

Similar to my previous commit. The comment syntax is not proper JSON and the standard JavaScript JSON parser can't handle it.

At a glance I can't see what the `printed_section` variable is for so I just let it be. Also a line break will still be printed between sections which is good.