def parse(response: str):
        """Parse the JSON object, including nested JSON strings."""
        parsed_res = parse_json(response)
        # Drop the potentially duplicated string quotes
        if isinstance(parsed_res, dict):
            for key, val in parsed_res.items():
                parsed_res[key] = evaluate_as_string(val)

        return parsed_res
Parse the JSON object, including nested JSON strings.
vlmeval/dataset/utils/megabench/parsing/json_parse.py