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.
You can access it using bracket notation like this `obj[variable]` which has the benefit that the string does not have to be a valid identifier; it can have any value, e.g. "1foo", "!bar!", or even " " (a space).