Код: Выделить всё
Unterminated string. Expected delimiter: ". Path 'StaticPasses', line 1, position 178.
Код: Выделить всё
{"Id":0,"Email":"teststaff@test.com","Name":"TestStaff","Password":"Password","SchoolId":3,"StaticPasses":"[{\"QrCode\":\"https://api.qrserver.com/v1/create-qr-code/?size=150x150&data=http://hallpass.azurewebsites.net/api/pass/getstaticpass/0/3/0\",\"Id\":0,\"Staff\":0,\"Student\":-1,\"ExpirationTime\":\"00:00:00\",\"CreationTime\":\"02:37:28.2114320\",\"Destination\":\"Destination\",\"ShareCode\":\"0\"},{\"QrCode\":\"https://api.qrserver.com/v1/create-qr-code/?size=150x150&data=http://hallpass.azurewebsites.net/api/pass/getstaticpass/1/3/0\",\"Id\":0,\"Staff\":0,\"Student\":-1,\"ExpirationTime\":\"00:00:00\",\"CreationTime\":\"02:38:01.8744350\",\"Destination\":\"Destination\",\"ShareCode\":\"1\"}]"}
Вот вызов сервера:
Код: Выделить всё
string staffJson = JsonConvert.SerializeObject(staff);
var response = await client.GetAsync("schools/updatestaff?staff=" + staffJson);
Подробнее здесь: https://stackoverflow.com/questions/526 ... aticpasses
Мобильная версия