Put message in json for zmq