If I have a class like
class A
{
public int Age {get; set;}
public string Name {get; set;}
}
Is there a way to serialize this object to generate properties with some arbitrary characters like this
[{ "prefix.age": 1, "prefix.name": "Apple" }]
I'm using Newtonsoft.Json for my serialization needs.
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…