I have a JSON object with the following structure:
obj = {
    foo: 'bar',
    data: {
        hello: this.foo
    }
}
However, this in the 2nd level is always the Window object. How can I reference foo properly?
NOTE
I know I can put the object into a "class" and referencer the property with selfor something. This is not an option for me. The object must be a standalone JSON object.
 
    