'parse the json file
Activity.LoadLayout("main")
Dim JSON As JSONParser
Dim Map1 As Map
If File.Exists(File.DirAssets, "recipie.txt")Then
JSON.Initialize(File.ReadString(File.DirAssets, "recipie.txt"))
Map1 = JSON.NextObject
Dim m As Map 'helper map for navigating
Dim ingredients As List 'list holds all the recipies
ingredients.Initialize
m = Map1.Get("results")'top level with a key: the value is everything else in the code. key:value pass it to m
'm = m.Get("title")
ingredients = m.Get("results")' get out the ingredients
For i = 0 To ingredients.Size - 1
m = ingredients.Get(i)
Log(m.Get("title"))
lvrecipie.AddSingleLine("title" & " " & "ingredients")
Next
Else
ToastMessageShow("no file", "")
End If