def recv(self):
        h = self.data_in.readline()
        content_length = int(h.split(" ")[1])
        d = self.data_in.readline()
        d = self.data_in.read(content_length)
        self._log_write("rcvd: %s\n" % repr(d))
        try:
            j = json.loads(d)
        except:
            self._log_write("EXCEPTION!")
        return j