Parse response body if it is an object