Class JSONSerializer
java.lang.Object
org.eclipse.persistence.sessions.serializers.AbstractSerializer
org.eclipse.persistence.sessions.serializers.XMLSerializer
org.eclipse.persistence.sessions.serializers.JSONSerializer
- All Implemented Interfaces:
Serializable
,Cloneable
,Serializer
Uses EclipseLink Moxy to convert an object to JSON.
- See Also:
- Author:
- James Sutherland
-
Constructor Summary
ConstructorDescriptionJSONSerializer
(jakarta.xml.bind.JAXBContext context) JSONSerializer
(String packageName) -
Method Summary
Methods inherited from class org.eclipse.persistence.sessions.serializers.XMLSerializer
getType, initialize
-
Constructor Details
-
JSONSerializer
public JSONSerializer() -
JSONSerializer
-
JSONSerializer
public JSONSerializer(jakarta.xml.bind.JAXBContext context)
-
-
Method Details
-
serialize
- Specified by:
serialize
in interfaceSerializer
- Overrides:
serialize
in classXMLSerializer
-
deserialize
- Specified by:
deserialize
in interfaceSerializer
- Overrides:
deserialize
in classXMLSerializer
-
toString
- Overrides:
toString
in classXMLSerializer
-