For Geckoboard I want to generate a JSON like this:
{
"item": [
    {
      "value": "274057"
    },
    [
      "38594",
      "39957",
      "35316",
      "35913",
      "36668",
      "45660",
      "41949"
    ]
  ]
}
I am struggling with the missing property before the array.
How must the C# Class look like to serialize to that?
                        
Those works fine for dynamic languages, like javaScript, but it is not so easy to do same thing in C#. The best i can see here - this whole JSON will map to following class structure:
And basically next you will need a custom serializer rules or parameter binder (depending where you are using it), that will take this JSON and manually fill
RootItem.Itemcollection with either collection ofValueItemorIEnumerable<string>.