I am trying to query from a particular dynamic table and then need to query back its field names and the values.
This is the response from the server: Response from server: [{"id":"1","field1":"25","field2":"25","field3":"25","field4":"25"}];
Here is the code I'm using
	
	
	
	
	
	
	
		
			
			
			
			
			
		
	
	
	
		
	
	
		
	
but the code above output this
id 1
It seems ListOfItems contains only 1 size item.
Thanks for the time and keep safe.
microbox
			
			This is the response from the server: Response from server: [{"id":"1","field1":"25","field2":"25","field3":"25","field4":"25"}];
Here is the code I'm using
			
				B4X:
			
		
		
		Dim v1,v2 As String
Dim ListOfItems As List = parser.NextArray
Dim fieldlist As Map ' reg_id
    For i = 0 To ListOfItems.Size - 1
        fieldlist = ListOfItems.Get(i)
        v1 = fieldlist.GetKeyAt(i)
        v2 = fieldlist.GetValueAt(i)
        Log(v1 & " " & v2)
    Nextid 1
It seems ListOfItems contains only 1 size item.
Thanks for the time and keep safe.
microbox
 
				 
 
		 
 
		 
 
		 
						
					 
 
		 
 
		