I want to create the json element dynamically..something like this:

for exam. if 

var branch\_name = "abc-cde";

Instead of "abc-cde" below I want the variable branch\_name, so that I can replace it with other elements. please note the hyphen in abc-cde.

```
itemsarray["abc-cde_workunit"] = dataResponse.branch_descriptor["abc-cde"].workunit_id;

```

The above code is in angularjs. Please let me know if anything is not clear.