Skip to Content
Menu
Dette spørgsmål er blevet anmeldt
4335 Visninger

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
Kassér
Related Posts Besvarelser Visninger Aktivitet
0
mar. 25
737
0
jan. 21
13167
2
dec. 19
9581
1
apr. 17
12700
2
maj 15
7123