Code
And JSON
How should I fix?
B4X:
Dim m1, m2 As Map
Dim j As JSONParser
j.Initialize(File.ReadString(File.DirAssets, "a.json"))
m1 = j.NextObject
Dim m As List
m2 = m1.Get("articles")
m = m2.Get("name")
For Each m3 As String In m
Log(m3)
Next
And JSON
B4X:
{
"articles": [
{
"name": "First Item",
"article": "First Article"
},
{
"name": "Second Item",
"article": "Second Article"
}
]
}
How should I fix?