I am supposed to receive a `QJsonObject` from server, which will contain an `QJsonObject` or `QJsonArray` with name "List". I mean, "List" can be either a `QJsonObject` or `QJsonArray`. So how to check if "List" is a `QJsonObject` or a `QJsonArray`?

The received `QJsonDocument` could be one of the two bellow writen formats 

1) Here "List" is a `QJsonArray`

```
{
  "Data":
         {
           "List":
             [
                {
                   "name": "something",
                   "id": "number"
                },
                {
                   "name": "something",
                   "id": "number"
                },
                {
                   "name":"something",
                   "id": "number"
               }
            ] 
        } 
}

```

2) Here "List" is a `QJsonObject`

```
{
   "Data":
          {
            "List":
               {
                  "name": "something",
                  "id": "number"
               }
          }
}

```

Thanks in advance. Any help would be appreciated.