Added Content-type headers for JSON output