JsonConvert.SerializeObject(ob)
using System.Web.Script.Serialization; var json = new JavaScriptSerializer().Serialize(obj);