Click here to Skip to main content
15,899,025 members

Comments by naveend915 (Top 20 by date)

naveend915 26-Jan-14 7:27am View    
When i download it as a json file even then it has
"{\"PkUserId\":1,\"CubicalName\":\"21547\"}"
naveend915 26-Jan-14 6:52am View    
ya am seeing it, i am getting like this

sonConvert.SerializeObject(result)

"{\"PkUserId\":1,\"CubicalName\":\"21547\"}"

even when i use
naveend915 26-Jan-14 6:34am View    
i have used JsonConvert.SerializeObject(result) , even then same issue so can u please give an example ?
naveend915 26-Jan-14 6:34am View    
Can u please give an example how to do that?
naveend915 26-Jan-14 4:33am View    
List<userprofile> loginInfolist=new List<userprofile>();
if (ds != null && ds.Tables[0] != null && ds.Tables[0].Rows.Count > 0)
{
foreach (DataRow dr in ds.Tables[0].Rows)
{

loginInfoDC = new UserProfile();
loginInfoDC.PkUserId = Convert.ToInt32(dr["pkUserId"]);
loginInfoDC.CubicalName = Convert.ToString(dr["CubicalName"]);
loginInfolist.add(loginInfoDC);
}

}


i want to know how to serialise to json and how to differentiate it with list index
say list[0] json and the lit[1]json

meant all the serialised json of the list will be in same json obj how to differentiate