def METHOD_NAME(markup: str) -> Any:
    import yaml  # leave import here, to avoid breaking our Lambda tests!
    try:
        return json.loads(markup)
    except Exception:
        try:
            return clone_safe(yaml.safe_load(markup))
        except Exception:
            try:
                return clone_safe(yaml.load(markup, Loader=yaml.SafeLoader))
            except Exception:
                raise