Changed web server so that it returns safe JSON data.