Giri Sain

Giri Sain

  • NA
  • 28
  • 3.4k

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)