Hi
I have this json string
{'path':'and god said let there be light.jpg','text':'And God Said, Let There Be Light'}
How can I convert this to a map object?
I have tried this, but get an error when I try to return the size of the map or read a key?
I have this json string
{'path':'and god said let there be light.jpg','text':'And God Said, Let There Be Light'}
How can I convert this to a map object?
I have tried this, but get an error when I try to return the size of the map or read a key?
B4X:
Sub JsonToMap(strJSON As String) As Map
' convert a json string to a map
Dim jMap As Map
jMap.Initialize
Dim JSON As JSONParser
JSON.Initialize(strJSON)
jMap = JSON.NextObject
Return jMap
End Sub