Skip to Content
Menu
You need to be registered to interact with the community.
This question has been flagged
4337 Prikazi

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
Opusti
Related Posts Odgovori Prikazi Aktivnost
0
mar. 25
744
0
jan. 21
13181
2
dec. 19
9596
1
apr. 17
12708
2
maj 15
7125