set content type for JSON responses