Question: Here is my JS object:

```
  var request = {
    "name": "Name",
    "id": 3,
    "rules":[
      {
        "name": "Rule name",
        "tags": [
          {
            "tagId": 1,
            "variables":[
              {
                "variable": "var1",
                "matchType": "Regex"
              }
            ],
            "condition": false,
          }
        ],
        "ruleSetId": 3,
      }
    ]
  }

```

How can I add a new property `"value": "some value"` to the `variables` objects? For example, after I add this property, the object should look like this:

```
  var request = {
    "name": "Name",
    "id": 3,
    "rules":[
      {
        "name": "Rule name",
        "tags": [
          {
            "tagId": 1,
            "variables":[
              {
                "variable": "var1",
                "matchType": "Regex",
                "value": "some value"   <----------
              }
            ],
            "condition": false,
          }
        ],
        "ruleSetId": 3,
      }
    ]
  }

```

I tried the following but it adds me an additional object that only contains `{"value": "some value"}` :

```
  request.rules[0].tags[0].variables.push({
    "value": "some value"
  });

```

Answer: 
you should do this.

```
request.rules[0].tags[0].variables[0]['value'] = 'some value';

```

The object you want add property to is in an array, it's the array's first element. you can achieve this object by `request.rules[0].tags[0].variables[0]`.
You're almost there.

```
request.rules[0].tags[1].variables['value'] = 'some value';

```