@Service public class JsonMarshaller extends Object
| Constructor and Description |
|---|
JsonMarshaller() |
public <T> String marshal(T object) throws Exception
T - - object classobject - - an object to marshallExceptionpublic <T> String marshal(T object, String rootName) throws Exception
T - - object classobject - - an object to marshallrootName - - String root name to wrapExceptionCopyright © 2014. All Rights Reserved.