Class StringToListDeserializer
- All Implemented Interfaces:
tools.jackson.databind.deser.NullValueProvider
public class StringToListDeserializer
extends tools.jackson.databind.ValueDeserializer<List<String>>
Custom Jackson deserializer that normalizes string and array inputs to List<String>.
Handles backward compatibility:
- null → null
- "id" → ["id"]
- ["id1", "id2"] → ["id1", "id2"]
-
Nested Class Summary
Nested classes/interfaces inherited from class tools.jackson.databind.ValueDeserializer
tools.jackson.databind.ValueDeserializer.None -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondeserialize(tools.jackson.core.JsonParser p, tools.jackson.databind.DeserializationContext ctxt) Methods inherited from class tools.jackson.databind.ValueDeserializer
createContextual, deserialize, deserializeWithType, deserializeWithType, findBackReference, getAbsentValue, getDelegatee, getEmptyAccessPattern, getEmptyValue, getKnownPropertyNames, getNullAccessPattern, getNullValue, getObjectIdReader, handledType, isCachable, logicalType, replaceDelegatee, resolve, supportsUpdate, unwrappingDeserializer
-
Constructor Details
-
StringToListDeserializer
public StringToListDeserializer()
-
-
Method Details