<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def raw(self, query: Any, data: Any = None):
 """Run raw query on Repository. For this stand-in repository, the query string is a json string that contains kwargs criteria with straigh-forward equality checks. Individual criteria are always ANDed and the result is always a subset of the full repository. We will ignore the `data` parameter for this kind of repository. """

        # Ensure that we are dealing with a string, for this repository
        assert isinstance(query, str)

        input_db = self.conn['data'][self.schema_name]
        result = None

        try:
            # Ensures that the string contains double quotes around keys and values
            query = query.replace("'", "\"")
            criteria = json.loads(query)

            for key, value in criteria.items():
                input_db = self.provider._evaluate_lookup(key, value, False, input_db)

            items = list(input_db.values())
            result = ResultSet(
                offset=1,
                limit=len(items),
                total=len(items),
                items=items)

        except json.JSONDecodeError:
            # FIXME Log Exception
            raise Exception("Query Malformed")

        return result