{"ResCode":1,"ResStrDisplay":"{"EmpId":16,"FullName":"GTPTEST","Designation":"Software Engineer","LastActivity":"Sign in recorded at 02/12/2016 15:23 from IP address: 115.118.170.121"}"}
I have get this output.
I want following output.
{"ResCode":1,"ResStrDisplay":{"EmpId":16,"FullName":"GTPTEST","Designation":"Software Engineer","LastActivity":"Sign in recorded at 02/12/2016 15:23 from IP address: 115.118.170.121"}}
{"ResCode":1,"ResStrDisplay":"{...}"}i want to remove this " " marks.
I want to remove "{..}" this "" marks.before bracket and after bracket
this is my code
WebEmployees ObjWebEmp = new WebEmployees();
ObjWebEmp.EmpId = objUser.UserId;
ObjWebEmp.FullName = objUser.FullName;
ObjWebEmp.Designation = objUser.Designation;
ObjWebEmp.LastActivity = lastactivity;
um.ResCode = 1;
um.ResStrDisplay = new JavaScriptSerializer().Serialize(ObjWebEmp);
What I have tried:
WebEmployees ObjWebEmp = new WebEmployees();
ObjWebEmp.EmpId = objUser.UserId;
ObjWebEmp.FullName = objUser.FullName;
ObjWebEmp.Designation = objUser.Designation;
ObjWebEmp.LastActivity = lastactivity;
um.ResCode = 1;
um.ResStrDisplay = new JavaScriptSerializer().Serialize(ObjWebEmp);