Se rendre au contenu
Menu
Cette question a été signalée
4225 Vues

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
Ignorer
Publications associées Réponses Vues Activité
0
mars 25
631
0
janv. 21
12955
2
déc. 19
9330
1
avr. 17
12457
2
mai 15
6960