pretty-print JSON for web server