Skip to Content
Menu
This question has been flagged
4705 Views

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
Discard
Related Posts Replies Views Activity
0
Mar 25
1142
0
Jan 21
13670
2
Dec 19
10310
1
Apr 17
13294
2
May 15
7560