code: def get_query_from_request(self, name):
          
          query = self.request.get(name, "{}")
          # json.loads does unicode conversion, which will fail in the catalog
          # search for some cases. So we need to convert the strings to utf8
          # https://github.com/senaite/senaite.core/issues/443
          query = json.loads(query)
          return self.to_utf8(query)
docs: Returns the query inferred from the request