Is there any plain way
It is possible:
... StringWriter writer = new StringWriter(); marshaller.marshallToJSON(objectToMarshall, writer) logger.debug(writer.toString()); ...
You can use an StringWriter to take the String representation of the marshalled JSON output.
StringWriter
String