score:1

what i understand is, you need only the value part of json(api result).

so instead of doing

setdata(res);

you should do

setdata(json.parse(res).value)

Related Query

More Query from same tag