Is there a solution to deserialize the nested field into a single class.

Dec 14, 2011 at 2:50 AM

{

"boss":

     {"name":"tom",

      "id":100},

"name":"myName",

"id":206

}

public class employee

 {
   
public string bossId { get; set; }
   
public string name { get; set; }
   
public int id { get; set; }
}

 

I want to deserialize id of boss into bossId,i.e bossId=100