Skip to Content
मेन्यू
This question has been flagged
4252 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
मार्च 25
657
0
जन॰ 21
12966
2
दिस॰ 19
9339
1
अप्रैल 17
12474
2
मई 15
6979