I have an ajax method that returns an MVC JsonResult. I use the data to populate a 3rd party controls datasource. The 3rd party control is expecting the data to not be a string (i.e. with no double quotes around it). If I alert the data returned in the jquery ajax call, It shows no double quotes:
[[10, 10], [15, 20], [20, 25], [32, 40], [43, 50], [55, 60], [60, 70], [70, 80], [90, 100]]
However if I look at the data through fidler it shows my data to be inside double quotes:
“[[10, 10], [15, 20], [20, 25], [32, 40], [43, 50], [55, 60], [60,
70], [70, 80], [90, 100]]”
The 3rd party control is not setting the datasource correctly, and I am sure it is because of this (If I populate the datasource by hardcoding the above data, it works fine)
You should use eval() or JSON.parse()