Ir al contenido
Menú
Se marcó esta pregunta
4229 Vistas

hi,

how i can convert a result of cursor to json object.

example:

result of cursor:

 [['1','product 1'],['2','product 2'],['3','product 3']]

i want it some thing like that: 

{ ['id':'1','name':'product 1'],['id':'2','name':'product 2'],['id':'3','name':'product 3']}

thx in advance

Avatar
Descartar
Publicaciones relacionadas Respuestas Vistas Actividad
0
mar 25
638
0
ene 21
12956
2
dic 19
9332
1
abr 17
12457
2
may 15
6962