getObjectMapper method
Returns the active ObjectMapper performing serialization.
The ObjectMapper provides access to Jetleaf’s configuration, registered modules, serializer registry, and naming conventions.
Example
final mapper = serializer.getObjectMapper();
final json = mapper.writeValueAsString(user);
Notes
- Enables recursive serialization for nested objects
- May expose internal feature flags and serializer adapters
- Should not be
nullduring active serialization
Implementation
@override
ObjectMapper getObjectMapper() => _objectMapper;