Allow structured objects to be sent to common logger as JSON strings