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.
Quite easy:

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

obj[variable] // prints 1

```

It's called [property accessor](https://developer.mozilla.org/en/docs/Web/JavaScript/Reference/Operators/Property_accessors).