I have list of objects of following class:
public class Catagory
{
int catagoryId;
string catagoryNameHindi;
string catagoryNameEnglish;
List
You could also decorate your class to serialize all members you want without having to specify [JsonProperty] for each of them.
[JsonObject(MemberSerialization.OptOut)]
public class Catagory {
...
}
The MemberSerialization enum allows you to specify what members you want to serialize: