Hi to all ... I am getting a single line response from remote db request . This is the response .. [{"category":"1","subcat":"1","recipe":"150089873809","filter":"1"}]
I can successfully process it as follows
Is the a more concise way to set this single response directly to a map ..
I have tried various methods and failed.
Many Thanks and Cheers
I can successfully process it as follows
B4X:
Wait For (GetStamps) JobDone(GetStamps As HttpJob)
If GetStamps.Success Then
Dim res As String = GetStamps.GetString
Dim parser As JSONParser
parser.Initialize(res)
Dim lstdata As List
lstdata.Initialize
lstdata = parser.NextArray 'returns a list of maps
Dim recData(4) As String 'hold column data to be displayed
Dim mData As Map = lstdata.Get(0)
recData(0) = mData.Get("category")
'etc................................
Is the a more concise way to set this single response directly to a map ..
I have tried various methods and failed.
Many Thanks and Cheers