I have a Dictionary<string,int[]>
that I need to serialize to JSON. Using the default formatter, I get
{"blah": [0,1,2,3], "yada": [0,1,2,3]}
What I need is something like this
[{ name: "blah", data: [0,1,2,3]}, name: "yada", data: [0,1,2,3] }]
What's the best/easiest way to achieve this? Should I write a custom serializer class? Or is there a different collection type that would work better than Dictionary?