vb.net と Newtonsoft Json ライブラリを使用して JSON を解析する際に問題が発生しています。
私のJSONデータは次のとおりです:
{
"Result":"Success",
"UserID":"johns",
"Password":null,
"Locked":"False",
"Comment":"",
"LastLoggedOn":"11/9/2013 9:14:17 PM",
"NumFailedAttempts":"1",
"FirstName":"John",
"LastName":"Smith",
"MessageNum":"UA-000",
"MessageText":"Authorisation successful"
}
私のコードは次のとおりです。
Dim a As saLoginResponse = JsonConvert.DeserializeObject(Of saLoginResponse)(strJSONEncode)
Response.Write(a.ToString)
Response.Write(a.MessageText)
これは出力を生成しません。
どんな助けでも大歓迎です。