I have the following json that's returned from a C# web api as a name value pair.
{
{
"Grouping": "Label0",
"Count": 71
},
{
"Grouping": "Label1",
"Count": 44
},
{
"Grouping": "Label2",
"Count": 18
},
{
"Grouping": "Label3",
"Count": 34
}
}
I need to cast this data set to support a highchart pie chart. The pie chart requires data in the form of
{
name: <>,
y: <>,
drilldown: <>
}
How can I cast the retrieved Name value pair into the expected json for highchart? Thanks