Package org.dawnsci.persistence.json
Class JacksonMarshaller
java.lang.Object
org.dawnsci.persistence.json.JacksonMarshaller
- All Implemented Interfaces:
IJSonMarshaller
Class used to implement java bean to JSon and JSon to java bean conversion using Jackson
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
JacksonMarshaller
public JacksonMarshaller()
-
-
Method Details
-
marshal
Description copied from interface:IJSonMarshallerReturns a JSON String given an object- Specified by:
marshalin interfaceIJSonMarshaller- Parameters:
obj-- Returns:
- json string
- Throws:
Exception
-
unmarshal
Description copied from interface:IJSonMarshallerReturns an object given a JSON String- Specified by:
unmarshalin interfaceIJSonMarshaller- Parameters:
json-- Returns:
- Object
- Throws:
Exception
-
isROISupported
Method that returns true if the type of ROI is supported by the ROIBeanConverter- Returns:
- boolean
-