docs: def encode_json(self, serializable):
          """
          Serialize to json a serializable object (Search, Query, Filter, etc).
          """
          return json.dumps(serializable.serialize(), cls=self.encoder)