Use configured object mapper to serialize into bytes