Use correct Content-Type header for JSON output