JsonTree is great tool & save us a lot of time.
in this example, parsing is not complete!
We got this:
where is the remaining of Json input parsing? "year,price"
in this example, parsing is not complete!
B4X:
[
{car:"Toyota",model:"Prado"},
{year:2020,price:20000},
{year:2019,price:17000},
{year:2015,price:12000}
]
B4X:
Dim parser As JSONParser
parser.Initialize(<text>)
Dim root As List = parser.NextArray
For Each colroot As Map In root
Dim car As String = colroot.Get("car")
Dim model As String = colroot.Get("model")
Next