Android Question Need to understand how to parse data return from job done.

microbox

Active Member
Licensed User
Longtime User
Hello everyone...the following is what I'm receiving from PHP and Mysql response.
B4X:
Response from server: [{"Tables_in_stagescoringdb (%crit%)":"critcheerdance"},{"Tables_in_stagescoringdb (%crit%)":"critsoloperform"}];
How can I extract "critcheerdance" & "critsoloperform" and how can I know what kind of data type is it?

Thank you and more power!
 

DonManfred

Expert
Licensed User
Longtime User
1. http://basic4ppc.com:51042/json/index.html

2.
B4X:
Dim parser As JSONParser
parser.Initialize(<text>)
Dim root As List = parser.NextArray
For Each colroot As Map In root
Dim Tables_in_stagescoringdb As String = colroot.Get("Tables_in_stagescoringdb (%crit%)")
Next
 
Upvote 0
Top