Can I use JSON.Stringify in code-behind of an ASP.Net project?
You can use something like
JsonConvert.SerializeObject(ob)
From library: Newtonsoft.Json
using System.Web.Helpers;
Json.Encode(obj)
JSON.stringify()
Actually converts a JavaScript object into a string, you can do it in server side like this:
using System.Web.Script.Serialization;
var json = new JavaScriptSerializer().Serialize(obj);
Edit: JSON.stringify()
is a client side(browser) functionality. So you can't do that on the server side.