adding response type: json to the response