Question: Supposte to have an object:

```
var obj = { 'home':1, 'dog':1, 'house':3 }

```

and suppose to have a variable

```
var variable='home';

```

(I don't know if it is possibile)

Now I need access to object in this way obj.variable so variable=home and it seems to do obj.home. I can do something like this? Anyone can help me?

Answer: 
Try this `obj[variable]` to access value in json object.
Setting up the Object:

```
// Setting up Object
var obj = {
    home: 1,
    dog: 1,
    house: "big"
}

// Accesing object 
var home = obj.home;

```

or if you are dynamically generating go with:

// Setting up Object

```
var obj = {
    'home': '1',
    'dog': '1',
    'house': 'big'

}

// Accesing object 
var home = obj["home"];

```