1
私はvb.netを使用してjsonファイルを読み込もうとしています。私はとても基本的なコードと一緒に.jsonファイルとして保存した非常に単純なテキストサンプルを持っています。jsonファイルをvb.netにアップロードできません
Imports System.IO
Module Module1
Sub Main()
Dim json As String = File.ReadAllText("C:\Users\cmannar\sample2.json")
Console.WriteLine()
Console.Read()
End Sub
End Module
私の単純なテキストファイルがsample2.jsonと呼ばれ、ここでされています: は、ここでは、コードです
[{
"id": 1,
"first_name": "Jeanette",
"last_name": "Penddreth",
"email": "[email protected]",
"gender": "Female",
"ip_address": "26.58.193.2"
}, {
"id": 2,
"first_name": "Giavani",
"last_name": "Frediani",
"email": "[email protected]",
"gender": "Male",
"ip_address": "229.179.4.212"
}, {
"id": 3,
"first_name": "Noell",
"last_name": "Bea",
"email": "[email protected]",
"gender": "Female",
"ip_address": "180.66.162.255"
}, {
"id": 4,
"first_name": "Willard",
"last_name": "Valek",
"email": "[email protected]",
"gender": "Male",
"ip_address": "67.76.188.26"
}]
それは罰金コンパイルし、エラーがないが、それは私の外に印刷されません。 jsonファイル。それは空白の画面のままです。 誰かが私がどこに間違っていたかを私に見せてもらえれば、とても感謝しています!事前にありがとう
ああ、私はそれを逃したとは思わない。ありがとうございました! –