im using json.net
After deserializing of json to object, i want to get json source of this object
e.g.
objParent:{
objChild1: {name:"testObj"},
objChild2: {age: 25}
}
in c# code
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}
}