Giri Sain

Giri Sain

  • 2.1k
  • 15
  • 304

How do I convert a dictionary to a JSON String?

Oct 23 2021 7:54 AM

string resp = cl.UploadString(strURL, post_data);
var decoder = new System.Web.Script.Serialization.JavaScriptSerializer();

ret = decoder.Deserialize<Dictionary<string, dynamic>>(resp);

 

i want to convert ret in json string.


Answers (4)