I have an object and I want to serialize it to a custom serialization format. e.g
class MyObj
{
public string Name { get;set;}
public Dictionary<string, string> KeyValues {get;set; }
}
I want to camelcase Name but not KeyValues. Is this possible in Newtonsoft? I know how to do this for the entire object but not for specific properties.
So, the output should look like this:
{
"name" : "Mike",
"keyValues":
{
"Abc": "x",
"Prv": "y"
}
}