Skip ke Konten
Menu
Pertanyaan ini telah diberikan tanda
4725 Tampilan

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
Buang
Post Terkait Replies Tampilan Aktivitas
0
Mar 25
1157
0
Jan 21
13709
2
Des 19
10339
1
Apr 17
13335
2
Mei 15
7583