registerKotlinModule() and jackson objectmapper is showing output with snake case instead of camel case
I have the following class
class Store @JsonCreator constructor(
@JsonProperty("type") type: String,
@JsonProperty("last_hours") lastHours: String? )
With the ObjectMapper() defined as
objectMapper = ObjectMapper().registerKotlinModule()
And Store created as
store = Store(
type = "Apple",
lastHours = "20 hs"
)
After deserialization of Store as it follows:
objectMapper.convertValue(store, object : TypeReference() {})
The output is
{
"type" : "Apple",
"last_hours" : "20...