# How change brackets

**URL:** <https://jsonforms.discourse.group/t/how-change-brackets/926>\
**Category:** General\
**Created:** [August 4, 2022, 11:11am UTC](https://jsonforms.discourse.group/t/how-change-brackets/926 "2022-08-04T11:11:45Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Enot41](https://yyz2.discourse-cdn.com/free1/user_avatar/jsonforms.discourse.group/enot41/32/419_2.png) [@Enot41](https://jsonforms.discourse.group/u/Enot41)\
**Post date:** [August 4, 2022, 11:11am UTC](https://jsonforms.discourse.group/t/how-change-brackets/926/1 "2022-08-04T11:11:45Z")

</div>

You can help me about this quests?

I need change brackets

```auto
{
  "PhaseName": "h",
  "Comment": "h",
  "Servers": [
    {
      "ServerName": "Main",
      "IP": "8.8.8.8",
      "User": "User"
    }
  ]
}

```

but i need me

```auto
[
{
  "PhaseName": "h",
  "Comment": "h",
  "Servers": [
    {
      "ServerName": "Main",
      "IP": "8.8.8.8",
      "User": "User"
    }
  ]
}
]

```

What file I should change ?

---

<div class="post-metadata">

**Author:** ![sdirix](https://yyz2.discourse-cdn.com/free1/user_avatar/jsonforms.discourse.group/sdirix/32/1073_2.png) [@sdirix](https://jsonforms.discourse.group/u/sdirix)\
**Post date:** [August 8, 2022, 6:42am UTC](https://jsonforms.discourse.group/t/how-change-brackets/926/2 "2022-08-08T06:42:15Z")

</div>

Hi @Enot41,

Can you elaborate on your problem a bit more? If your data is not unique you can simply wrap the data within a `type: 'array'` in your JSON Schema.

---

<div class="post-metadata">

**Author:** ![Enot41](https://yyz2.discourse-cdn.com/free1/user_avatar/jsonforms.discourse.group/enot41/32/419_2.png) [@Enot41](https://jsonforms.discourse.group/u/Enot41)\
**Post date:** [August 9, 2022, 8:10am UTC](https://jsonforms.discourse.group/t/how-change-brackets/926/3 "2022-08-09T08:10:04Z")

</div>

Sorry I asked the wrong question  
After change shhema and uishema  
I get Data

```auto
{
  "Phases": [
    {
      "PhaseName": "55",
      "Comment": "55",
      "Servers": [
        {
          "ServerName": "55",
          "Comment": "55",
          "IP": "55",
          "User": "55",
          "PwdEncrypted": "55"
        }
      ]
    },
    {
      "PhaseName": "44",
      "Comment": "44",
      "Servers": [
        {
          "ServerName": "44",
          "Comment": "44",
          "IP": "44",
          "User": "44",
          "PwdEncrypted": "44"
        }
      ]
    }
  ]
}

```

but i need

```auto
[
    {
        "PhaseName": "55",
        "Comment": "55",
        "Servers": [
          {
            "ServerName": "55",
            "Comment": "55",
            "IP": "55",
            "User": "55",
            "PwdEncrypted": "55"
          }
        ]
    },
    {
        "PhaseName": "44",
        "Comment": "44",
        "Servers": [
          {
            "ServerName": "44",
            "Comment": "44",
            "IP": "44",
            "User": "44",
            "PwdEncrypted": "44"
          }
        ]
    }
]

```

Tell me, can I do that?

---

<div class="post-metadata">

**Author:** ![sdirix](https://yyz2.discourse-cdn.com/free1/user_avatar/jsonforms.discourse.group/sdirix/32/1073_2.png) [@sdirix](https://jsonforms.discourse.group/u/sdirix)\
**Post date:** [August 10, 2022, 7:16am UTC](https://jsonforms.discourse.group/t/how-change-brackets/926/4 "2022-08-10T07:16:49Z")

</div>

Hi @Enot41, can you post your Json Schema and UI Schema so we can help you with that?

---

<div class="post-metadata">

**Author:** ![Enot41](https://yyz2.discourse-cdn.com/free1/user_avatar/jsonforms.discourse.group/enot41/32/419_2.png) [@Enot41](https://jsonforms.discourse.group/u/Enot41)\
**Post date:** [August 10, 2022, 7:22am UTC](https://jsonforms.discourse.group/t/how-change-brackets/926/5 "2022-08-10T07:22:51Z")

</div>

I did it, example.

const userObj = {  
Phases: [  
{  
PhaseName: ‘55’,  
Comment: ‘55’,  
Servers: [  
{  
ServerName: ‘55’,  
Comment: ‘55’,  
IP: ‘55’,  
User: ‘55’,  
PwdEncrypted: ‘55’,  
},  
],  
},  
],  
};

const data2 = { Phases: userObj };
