Dim jsonList = DirectCast(JsonConvert.DeserializeObject(TextBox1.Text), JObject)("list")
Dim cols() As String = {"fruit", "animal", "flower"}
For Each c As String In cols jsonDataTable.Columns.Add(New DataColumn(c)) Next
newRow = jsonDataTable.NewRow() '新しい行を作る newRow("fruit" ) = jsonList("fruit" ).ElementAtOrDefault(0) 'リンゴ newRow("animal") = jsonList("animal").ElementAtOrDefault(0) 'イヌ newRow("flower") = jsonList("flower").ElementAtOrDefault(0) 'バラ
newRow = jsonDataTable.NewRow() '新しい行を作る newRow("fruit" ) = jsonList("fruit" ).ElementAtOrDefault(1) 'バナナ newRow("animal") = jsonList("animal").ElementAtOrDefault(1) 'ネコ newRow("flower") = jsonList("flower").ElementAtOrDefault(1) 'ユリ