when working with b4xpages there is already a declared root variable.
it always conflicts when we convert the code in the JSON Tree Example
Change:
M if it is Map
L if it is List
Update to:
it always conflicts when we convert the code in the JSON Tree Example
Change:
M if it is Map
L if it is List
B4X:
Dim parser As JSONParser
parser.Initialize(<text>)
Dim root As Map = parser.NextObject
Dim token As String = root.Get("token")
Update to:
B4X:
Dim parser As JSONParser
parser.Initialize(<text>)
Dim m As Map = parser.NextObject
Dim token As String = m.Get("token")