I have a C# class with a public method as below. I want to serialize this class in JSON using Newtownsoft. The problem is Json serialization only serialize public properties and fields. How would I get method serialized ?
public class Employee
{
public void ExecuteSomeOperation()
{
//code...
}
}