How to Create Array inot JSON Format : For Exampale: 

```var arr = ["tag1, tag2"]```

This above array I want to in JSON format for example:

```var arr = [
`{"name": "tag1"},`
`{"name": "tag2"}`
]
```

How to do this please anyone helps me out this problem.