I have to create a json file with an array inside in c# so this is my code but throws an exception:

```
Method name expected

```

before `new Dictionary<string, int>[2]();`

Have you got any suggestions?

```
int[] lung = results.ToArray();

Dictionary<string, Dictionary<string, int>[]> padre = new Dictionary<string, Dictionary<string, int>[]>();
Dictionary<string, int>[] udemy = new Dictionary<string, int>[2]();
padre.Add("Lunghezza", udemy);
udemy[0].Add("attributo", lung[0]);
udemy[1].Add("attributo2", lung[1]);
string js = JsonConvert.SerializeObject(padre);
System.Diagnostics.Debug.WriteLine(js);

```