corrent way to traqnsfor string to json newtonsoft code example
Example: object to json c#
using Newtonsoft.Json;
var jsonString = JsonConvert.SerializeObject(obj);
using Newtonsoft.Json;
var jsonString = JsonConvert.SerializeObject(obj);