Since we are using ObjectMapper for JSON de/serialization we should provide a way for Bastion users to configure the ObjectMapper we use for Bastion; ideally through Bastion.config().
Therefore we should also make sure that we use the same instance of ObjectMapper whenever we de/serialize.
I think we can have Bastion.config().objectMapper() provide an instance which can be configured.
Since we are using
ObjectMapperfor JSON de/serialization we should provide a way for Bastion users to configure theObjectMapperwe use for Bastion; ideally throughBastion.config().Therefore we should also make sure that we use the same instance of
ObjectMapperwhenever we de/serialize.I think we can have
Bastion.config().objectMapper()provide an instance which can be configured.