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 object properties with 2 ways:

1. With `.` notation.
2. With `[]` notation.

If your object property names are of reserved words or contain empty space, then you can't use . to access them. The only way to access them is `[]`.

So you can access your object property as follows:

`obj[variable] = 10` // or whatever value you wants to assign to this variable