Interface JsonConverter<T>
- Type Parameters:
T- the type this converter handles
- All Superinterfaces:
JsonComponent<T>, JsonDeserializer<T>, JsonSerializer<T>
A combined JSON serializer and deserializer for a specific type.
-
Method Summary
Methods inherited from interface JsonComponent
configure, typeModifier and TypeMethodDescriptiondefault voidconfigure(JsonBindingConfigurator jsonBindingConfigurator) Configures this component with the provided configurator.type()Return the type this component handles.Methods inherited from interface JsonDeserializer
deserialize, deserializeNullModifier and TypeMethodDescriptiondeserialize(JsonParser parser) Deserializes JSON data from the parser into an object of type T.default TReturn the default value when deserializing a null JSON value.Methods inherited from interface JsonSerializer
isMapKeySerializer, serialize, serializeAsMapKey, serializeNullModifier and TypeMethodDescriptiondefault booleanChecks if this serializer can be used for serializing map keys.voidserialize(JsonGenerator generator, T instance, boolean writeNulls) Serializes the given instance to JSON using the provided generator.default StringserializeAsMapKey(T instance) Serializes the given instance as a map key string.default voidserializeNull(JsonGenerator generator) Serializes a null value.