@Service public class JsonUnmarshaller extends Object
| Constructor and Description |
|---|
JsonUnmarshaller() |
public <T> T unmarshal(String data, Class<T> objectClass) throws Exception
T - - class of the objectdata - - String - marshalled object to unmarshalobjectClass - - class of the objectExceptionpublic <T> T unmarshal(String data, String rootName, Class<T> objectClass) throws Exception
T - - class of the objectdata - - String - marshalled object to unmarshalrootName - - String - additional root name to addobjectClass - - class of the objectExceptionCopyright © 2014. All Rights Reserved.