@classmethod
def translate(cls, val):
    """Translate each of the standard json/yaml types to appropiate objects."""
    if val is None:
        return cls.translate_none(val)
    elif isinstance(val, str):
        return cls.translate_str(val)
    elif isinstance(val, bool):
        return cls.translate_bool(val)
    elif isinstance(val, int):
        return cls.translate_int(val)
    elif isinstance(val, float):
        return cls.translate_float(val)
    elif isinstance(val, dict):
        return cls.translate_dict(val)
    elif isinstance(val, list):
        return cls.translate_list(val)
    return cls.translate_escaped_str(val)
