Skip to Content
Menú
This question has been flagged
4341 Vistes

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
Related Posts Respostes Vistes Activitat
0
de març 25
744
0
de gen. 21
13183
2
de des. 19
9596
1
d’abr. 17
12708
2
de maig 15
7126