I need to generate a JSON object as below using ASP.NET MVC 3.0 or above. All good except that some of the properties have - 'dash' e.g. scale-x. C# doesn't like this, is there a way to workaround this?
{
"Data" : [
{
"scale-x":{
"values":["1","2"],
},
"scale-y":{
"line-width":"1px",
}
},
"series" : [
{
"values" : [2, 5]
}
]
}
]
}
Thanks.