Accessing a pages object using a Chrome Extension

I simply have to access an object that is a variable on the page that I am running my content script on from my Chrome Extension.

I know about the environments and their isolated worlds in which the content scripts and injected scripts run and that it’s possible to get some variables using the injected scripts and then send them back.

I have searched for other answers regarding this question and most work for other type of variables and are the basic way of doing it but none currently work for accessing objects.

Any current solutions or workarounds?