Skip to Content
Menu
This question has been flagged
4524 Rodiniai

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

Portretas
Atmesti
Related Posts Replies Rodiniai Veikla
0
kov. 25
1003
0
saus. 21
13526
2
gruod. 19
9993
1
bal. 17
13120
2
geg. 15
7402