bastion-dev / Bastion

Java test library for HTTP APIs
http://bastion.rocks
GNU General Public License v3.0
13 stars 8 forks source link

Make ObjectMapper configurable #76

Open FrelliBB opened 7 years ago

FrelliBB commented 7 years ago

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.

KPull commented 7 years ago

There are some left overs of Google's GSON in the code. For anyone tackling this task, it would be great if we remove any references to Google GSON and use Jackson's ObjectMapper instead.