### Parse JSON Array

Simple example parsing a JSON Array.
JSON File
The file must start [ followed by the array items {},{} and closed with ].
This example has two array items "Project":"", "Download":"" .
The content of the file projects.json:
[
{
"Project": "150. Raspberry Pi check process running example B4J-Bridge (20161021)",
"Download": "http://mylink"
},
{
"Project": "149. Listview with editable TextFields (20161020)",
"Download": "mylink"
}
]
B4J Code
Dim parser As JSONParser
parser.Initialize(File.ReadString(File.DirApp, "projects.json"))
Dim root As List = parser.NextArray
For Each colroot As Map In root
Dim Project As String = colroot.Get("Project")
Dim Download As String = colroot.Get("Download")
Next

Changed: 2018-06-07 09:14, Category: JSON, File: T6C210M1534.htm, ID: 1534