Write JSON output to webpage