Question: I am trying to do this but getting syntax errors. Is there something I am doing wrong? Do I have to make a specific class to fit each of these objects in every time?

```
var groups = [
    { id: 1, name: 'Conversation' },
    { id: 2, name: 'Business' },
    { id: 27, name: 'Animals' }
];

```

Answer: 
That's not C#; try:

```
var groups = new [] {
    new { id = 1, name = "Conversation" },
    new { id = 2, name = "Business" },
    new { id = 27, name ="Animals" }
};

```

That said... working with anonymous types is awkward; you *probably* want to declare a type that has an `Id` and a `Name` and use that instead:

```
var groups = new [] {
    new Foo { Id = 1, Name = "Conversation" },
    new Foo { Id = 2, Name = "Business" },
    new Foo { Id = 27, Name ="Animals" }
};
...
class Foo {
     public int  Id {get;set;}
     public string Name {get;set;}
}

```
Try this:

```
var groups = new object[] { new { id=1, name="Conversation" },
new { id=1, name="Conversation" },
new { id=1, name="Conversation" }
};

```