Hello. I have a json file on an http site and I'm struggling to understand the process.
After going to: https://b4x.com:51041/json/index.html and letting B4X generate the code. I'm trying to understand what value I need in line 2 where you see the (<text>)
object. I can't figure this out. The json file is at http://www.oblongapps.com/oblongapp/mainmenu.json
The json parses perfectly in objective c in Xcode but I'm unfamiliar with how B4X is getting the data.
What do I do with the (<text>) ?
Thanks!!
Below is the output from the code generator:
Dim parser As JSONParser
parser.Initialize(<text>)
Dim root As Map = parser.NextObject
Dim menu As List = root.Get("menu")
For Each colmenu As Map In menu
Dim image As String = colmenu.Get("image")
Dim detailText As String = colmenu.Get("detailText")
Dim link As String = colmenu.Get("link")
Dim text As String = colmenu.Get("text")
Dim content As String = colmenu.Get("content")
Next
After going to: https://b4x.com:51041/json/index.html and letting B4X generate the code. I'm trying to understand what value I need in line 2 where you see the (<text>)
object. I can't figure this out. The json file is at http://www.oblongapps.com/oblongapp/mainmenu.json
The json parses perfectly in objective c in Xcode but I'm unfamiliar with how B4X is getting the data.
What do I do with the (<text>) ?
Thanks!!
Below is the output from the code generator:
Dim parser As JSONParser
parser.Initialize(<text>)
Dim root As Map = parser.NextObject
Dim menu As List = root.Get("menu")
For Each colmenu As Map In menu
Dim image As String = colmenu.Get("image")
Dim detailText As String = colmenu.Get("detailText")
Dim link As String = colmenu.Get("link")
Dim text As String = colmenu.Get("text")
Dim content As String = colmenu.Get("content")
Next