I serialize my dataset by this code:
using Newtonsoft.Json;
var json=JsonConvert.SerializeObject(ds);
return json;
But, i get unnecessary escaping of quotes. I understand the reason why it is happening.
But, is there a way to avoid it
So, how can i change the current result:
{"d":"{\"Table\":[{\"Id\":4,\"adsc_title\":\"????\"},{\"Id\":5,\"adsc_title\":\"????\"},{\"Id\":6,\"adsc_title\":\"??????\"}],\"Table1\":[{\"Id\":55,\"Name\":\"????\"},{\"Id\":57,\"Name\":\" ??????\"}]}"}
I want to remove escape characters to parse JSON by javascript.
Let me know if more clarity is required.
Thanks much in advance.
Go to the complete details ...