convert c# object to json string using newtonsoft code example
Example 1: newtonsoft json object to json string
string output = JsonConvert.SerializeObject(product);
Example 2: newtonsoft.json string to object
Account account = JsonConvert.DeserializeObject<Account>(json);