Updated on Kisan Patel
How to serialize a class object into JSON format using the JsonConvert class.
JsonConvert.SerializeObject(item)
Note: you have to include the Newtonsoft.Json
namespace in application and allow to use the JsonConvert
class.