0
им с помощью json.netкак получить json источник десериализованного объекта? json.net
После десериализации из JSON объекта, я хочу, чтобы получить JSon источник этого объекта
например
objParent:{
objChild1: {name:"testObj"},
objChild2: {age: 25}
}
в C# код
public ObjChild1
{
public string name {get;set;}
[JsonIgnore]
public string JsonSource { get; set; } //objChild1: {name:"testObj"}
}
public ObjChild2
{
public int age {get;set;}
[JsonIgnore]
public string JsonSource { get; set; } //objChild2: {age: 25}
}