This class
class X{
public string a{get;set}
public string b{get;set}
}
is serialized like
{..., inst:{a:"value", b:"value"}, ...}
I need object of my class to be serialized like this:
{..., inst: x, ...}
Where x is a+b
How can I customize JSON serialization process from my class?
Checkout Newton-softs JSON serializer. Its pretty sweet.
Have you tried making a and b private, and then have something like