I want to pass the data to javascript code from my code behind file (C#) and what I want at javascript side is something like the following
var data = [
{
"date": "24-Apr-07",
"close": 93.24
},
{
"date": "25-Apr-07",
"close": 95.35
},
{
"date": "26-Apr-07",
"close": 98.84
}
];
I tried passing this as a string but failed since it considers the whole thing as a string only.
Is there any other option available ?