There are a few different Data Element types that can be used to get, set, and return an object. Cookie, Custom Code, JavaScript Variable, Local Storage, and others, for example. More details here: https://experienceleague.adobe.com/docs/experience-platform/tags/ui/data-elements.html