extracted the actual JSON serialization to an interface to open up for other serializations
added transformer message to be able to switch message serialization method