@Override
public String marshall(T obj) {
try {
JsonFactory jsonFactory = new MappingJsonFactory();
StringWriter output = new StringWriter();
JsonGenerator jsonGenerator = jsonFactory.createJsonGenerator(output);
jsonGenerator.writeObject(obj);
return output.toString();
} catch ( Exception e ) {
throw new RuntimeException(e);
}