After solving
#3
there is something strange in obtaining checkins:
The json is
{"meta":{"code":200},"notifications":[{"type":"notificationTray","item":{"unreadCount":0}}],"response":{"checkins":{"count":3109,"items":[{"id":"52e94401498eeae5a187fc68","createdAt":1391019009,"type":"checkin","isMayor":true,"timeZoneOffset":120,"venue":{"id":"51a9fc88498e943d4164213f","name":"casa","contact":{},"location":{"isFuzzed":true,"lat":44.41826985075991,"lng":26.04705597207766,"cc":"RO","country":"Romania"},"categories":[{"id":"4bf58dd8d48988d103941735","name":"Home (private)","pluralName":"Homes (private)","shortName":"Home","icon":{"prefix":"https://ss1.4sqi.net/img/categories_v2/building/home_","suffix":".png"},"primary":true}],"verified":false,"stats":{"checkinsCount":396,"usersCount":1,"tipCount":0},"likes":{"count":1,"groups":[],"summary":"You"},"like":true,"beenHere":{"count":396,"marked":false}},"likes":{"count":0,"groups":[]},"like":false,"photos":{"count":0,"items":[]},"posts":{"count":0,"textCount":0},"comments":{"count":0},"source":{"name":"foursquare for Android","url":"https://foursquare.com/download/#/android"}},{"id":"52e8b2d5498eea1e7c2a9509","createdAt":1390981845,"type":"checkin","isMayor":true,"timeZoneOffset":120,"venue":{"id":"4b968374f964a52044d134e3","name":"Ubisoft România","contact":{"phone":"0215690661","formattedPhone":"021 569 0661","twitter":"ubisoft"},"location":{"address":"Bd. Expoziției nr. 2, etaj 4","crossStreet":"str. Parcului","lat":44.47349645922998,"lng":26.057950258255005,"postalCode":"012101","cc":"RO","city":"București","country":"Romania"},"categories":[{"id":"4bf58dd8d48988d125941735","name":"Tech Startup","pluralName":"Tech Startups","shortName":"Tech Startup","icon":{"prefix":"https://ss1.4sqi.net/img/categories_v2/shops/technology_","suffix":".png"},"primary":true}],"verified":false,"stats":{"checkinsCount":2878,"usersCount":164,"tipCount":5},"url":"http://ubisoft.ro","likes":{"count":14,"groups":[{"type":"others","count":14,"items":[]}],"summary":"14 likes"},"like":false,"beenHere":{"count":597,"marked":false},"listed":{"groups":[{"type":"created","count":1,"items":[]}]}},"likes":{"count":0,"groups":[]},"like":false,"photos":{"count":0,"items":[]},"posts":{"count":0,"textCount":0},"comments":{"count":0},"source":{"name":"foursquare for Android","url":"https://foursquare.com/download/#/android"}},{"id":"52e8a9a1498eea1e7c2a5cf2","createdAt":1390979489,"type":"checkin","isMayor":true,"timeZoneOffset":120,"venue":{"id":"50229448e4b007e779a9ffcb","name":"Statie 41 Agronomie","contact":{},"location":{"lat":44.47160486443555,"lng":26.07227650155098,"cc":"RO","country":"Romania"},"categories":[{"id":"4bf58dd8d48988d1fc931735","name":"Light Rail","pluralName":"Light Rails","shortName":"Light Rail","icon":{"prefix":"https://ss1.4sqi.net/img/categories_v2/travel/lightrail_","suffix":".png"},"primary":true}],"verified":false,"stats":{"checkinsCount":75,"usersCount":41,"tipCount":0},"likes":{"count":1,"groups":[{"type":"others","count":1,"items":[{"id":"60998954","firstName":"Oliver","lastName":"P.","gender":"male","photo":{"prefix":"https://irs0.4sqi.net/img/user/","suffix":"/GZKOOWUAZNSABFAA.jpg"}}]}],"summary":"Oliver Popa"},"like":false,"beenHere":{"count":17,"marked":false}},"likes":{"count":0,"groups":[]},"like":false,"photos":{"count":0,"items":[]},"posts":{"count":0,"textCount":0},"comments":{"count":0},"source":{"name":"foursquare for Android","url":"https://foursquare.com/download/#/android"}},{"id":"52e87ba311d2418c4c62e043","createdAt":1390967715,"type":"checkin","shout":"Up","isMayor":true,"timeZoneOffset":120,"venue":{"id":"51a9fc88498e943d4164213f","name":"casa","contact":{},"location":{"isFuzzed":true,"lat":44.41826985075991,"lng":26.04705597207766,"cc":"RO","country":"Romania"},"categories":[{"id":"4bf58dd8d48988d103941735","name":"Home (private)","pluralName":"Homes (private)","shortName":"Home","icon":{"prefix":"https://ss1.4sqi.net/img/categories_v2/building/home_","suffix":".png"},"primary":true}],"verified":false,"stats":{"checkinsCount":396,"usersCount":1,"tipCount":0},"likes":{"count":1,"groups":[],"summary":"You"},"like":true,"beenHere":{"count":396,"marked":false}},"likes":{"count":0,"groups":[]},"like":false,"photos":{"count":0,"items":[]},"posts":{"count":0,"textCount":0},"comments":{"count":0},"source":{"name":"foursquare for Android","url":"https://foursquare.com/download/#/android"}}]}}}
but when deserializing in
FourSquareSingleResponse fourSquareResponse = new JavaScriptSerializer().Deserialize<FourSquareSingleResponse>(json);
( T is a Checkin)
the error is
{"No parameterless constructor defined for type of 'System.String'."}
with inner exception null.
I suppose that the json have changed - but how ?
Thank you for your time