GH-1097 Ensure empty POJO converted to {} instead of null

Resolves #1097
This commit is contained in:
Oleg Zhurakousky
2024-03-27 18:31:32 +01:00
parent cea464a4d2
commit 8745f32ac2
2 changed files with 23 additions and 1 deletions

View File

@@ -219,8 +219,8 @@ public class ContextFunctionCatalogAutoConfiguration {
}
catch (Exception e) {
mapper = new ObjectMapper();
mapper.configure(SerializationFeature.FAIL_ON_EMPTY_BEANS, false);
}
mapper.configure(SerializationFeature.FAIL_ON_EMPTY_BEANS, false);
return new JacksonMapper(mapper);
}
}