def METHOD_NAME(q):
    if not q:
        return None
    if not isinstance(q, dict):
        return None
    if KNOWN_TITLE_KEYS & set(q.keys()):
        return q
    return METHOD_NAME(q.get("json") or q.get("JSON"))