Added the ability to pass JSON messages with JSON Spirit