Android Question how to convert a map to string

DATASOFT (SOLUSOFT S A)

Member
Licensed User
Longtime User
i use
B4X:
Dim N As String
Dim parser As JSONParser
parser.Initialize(res)
Dim j As List
        j.initialize
        j= parser.NextArray

  For i=0 To j.Size-1   
        Dim m As Map
        m = j.Get(i)
      N=m.Get("nombclient")' and return NULL
i use a msgbox for see what item are in "m" and is not a null but i dont know how i can convert this item to a string
 

Theera

Expert
Licensed User
Longtime User
Using Map or List should initialize the first.
 
Upvote 0

DATASOFT (SOLUSOFT S A)

Member
Licensed User
Longtime User
B4X:
Respuesta del servidor: [{"idcliente":"datasoft","password":"data"},{"idcliente":"jose","password":"yo"},{"idcliente":"a","password":"a"},{"idcliente":"tele","password":"fono"}]

<!-- Hosting24 Analytics Code -->
<script type="text/javascript" src="http://stats.hosting24.com/count.php"></script>
<!-- End Of Analytics Code -->
(MyMap) {password=data, idcliente=datasoft}
(MyMap) {password=a, idcliente=a}

NOW I SEEEE -.-" :confused: wrong BD
 
Last edited:
Upvote 0
Top