public class JsonSerializing extends Object
Modifier and Type | Class and Description |
---|---|
static interface |
JsonSerializing.CustomSerializer<T> |
(package private) static class |
JsonSerializing.GsonSerializer<E,T extends JsonSerializableType<E>> |
static class |
JsonSerializing.TypeHandler<E,T extends JsonSerializableType<E>>
A handler of JSON serializable types that can either obtain a type from
a registry to handle JSON conversion or handle with a custom logic bound
to a type.
|
Constructor and Description |
---|
JsonSerializing() |
Modifier and Type | Method and Description |
---|---|
static <E,T extends JsonSerializableType<E>> |
createTypeHandler(Registry<T> registry,
String rootFieldName,
String idFieldName,
Function<E,T> typeIdentification) |
public static <E,T extends JsonSerializableType<E>> JsonSerializing.TypeHandler<E,T> createTypeHandler(Registry<T> registry, String rootFieldName, String idFieldName, Function<E,T> typeIdentification)