only use zmq.jsonapi when talking to zmq sockets

use stdlib json otherwise