Hi all, JsonFunctions currently uses a hardcoded JacksonJsonProvider with the default ObjectMapper, so any Jackson module not registered by default is unavailable. For example, passing a Java object with Optional fields to JSON_OBJECT fails since serialization of Optional fields is not enabled by default. Registering Jdk8Module on the ObjectMapper fixes this, but it looks like there's no way to do that today.
Looking at this more generally is there currently a way to configure a custom ObjectMapper? If not, would it make sense to allow configuring the ObjectMapper used by JSON functions? If the proposal makes sense, would you accept a contribution to enable this? If so, do you have any preference/guidance on how the solution should look like? Best regards, Danylo
