using System.Text.Json; //Serialize var jsonString = JsonSerializer.Serialize(yourObject); // Deserialize var obj = JsonSerializer.Deserialize<YourObject>(stringValue);
using System.Web.Script.Serialization;