Identifies the HAL draft level of a given JSON object.

def detect(self, obj):
        """Identifies the HAL draft level of a given JSON object."""
        links = obj.get(LINKS_KEY, {})

        for detector in [LATEST, DRAFT_3]:
            if detector.draft.curies_rel in links:
                return detector.detect(obj)

        return LATEST.detect(obj)