Android Question How to Populate Json Data in Tableview

junaidahmed

Well-Known Member
Licensed User
Longtime User
I have used Tableview to poulate data in Grid.I would like to know how to populate "JSON Data" in Grid (Tableview)
 

MarkusR

Well-Known Member
Licensed User
Longtime User
i not used this table view but here you can get the data from key value pairs.
Job.GetString is the JSON Data
it used the JSON Library 1.10
https://www.b4x.com/android/help/json.html
B4X:
                Dim JSON As JSONParser
                JSON.Initialize(Job.GetString)
               
                Dim Map1 As Map
                Map1 = JSON.NextObject
               
                EditTextBC.Text = Map1.Get("barcode")
                EditTextResponse.Text = Map1.Get("marking")
                LabelError.Text = Map1.Get("error")
 
Upvote 0
Top