Click here to Skip to main content
15,913,467 members

Comments by EswaranS (Top 4 by date)

EswaranS 11-Jan-16 19:35pm View    
I have more scenario ,Let's say if i have list as one of property in that Person class then how iterate in this foreach logic.

Could please clarify this
EswaranS 8-Jan-16 23:41pm View    
Thank you so much
EswaranS 8-Jan-16 23:21pm View    
As you suggested i have used JsonTextReader i am facing below error in while loop iteration
"
After parsing a value an unexpected character was encountered: :. Path '[0]', line 1, position 35".
EswaranS 8-Jan-16 21:58pm View    
I am trying to deserialize the below JSON Response

{
"1": {
"Name": "Test1",
"Age": "22",
"Address": "12233",
"HouseID": "12233433",
"HouseName": "RESTHouse"
},
"2": {
"Name": "Test2",
"Age": "22",
"Address": "12233",
"HouseID": "12233433",
"HouseName": "RESTHouse"
}
}

I want to create a strongly typed object in C# so I can deal with this data. but I don't know how to deal with the id number in this case 1 & 2 as root level, that is the identifier for my object details.

help me create a strongly type class for above JSON and deserialize to it