def encode(self, obj):
        self._verify()

        if not self._fallthrough:
            name = self._backend_names[0]
            return self.backend_encode(name, obj)

        for idx, name in enumerate(self._backend_names):
            try:
                return self.backend_encode(name, obj)
            except Exception as e:
                if idx == len(self._backend_names) - 1:
                    raise e
    # def dumps
Attempt to encode an object into JSON.
dataset/ETHPy150Open jsonpickle/jsonpickle/jsonpickle/backend.py/JSONBackend.encode