I have following string in c#,
"2015-9-9,2015-9-10,2015-9-11,2015-9-12,2015-9-13,2015-9-14"
now I want to convert that in a javascript variable like following json format.I want to send to server side to client side in one variable and required to use in javascript varialbe.
var avadates = ["2015-9-9", "2015-9-10", "2015-9-11", "2015-9-12", "2015-9-13", "2015-9-14"];
so,How to convert in Json from C# or any otherways to do that?