public class EnumJsonSerializer extends java.lang.Object implements TypeJsonSerializer<java.lang.Enum>
Constructor and Description |
---|
EnumJsonSerializer() |
Modifier and Type | Method and Description |
---|---|
boolean |
serialize(JsonContext jsonContext,
java.lang.Enum value)
Serializes a value and writes a JSON content.
|
public boolean serialize(JsonContext jsonContext, java.lang.Enum value)
TypeJsonSerializer
true
if content was written.
Returns false
if content for some reason was not written.serialize
in interface TypeJsonSerializer<java.lang.Enum>
Copyright © 2003-present Jodd Team