use mapper when json and response body exist.