跳至內容
選單
此問題已被標幟
4255 瀏覽次數

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

頭像
捨棄
相關帖文 回覆 瀏覽次數 活動
0
3月 25
657
0
1月 21
12975
2
12月 19
9343
1
4月 17
12480
2
5月 15
6984