I have an object, which is part of a json that I bring from the database, with this structure:
data:[83,78,77,80,32,65,103,101,110,116,32,52,65,32,32,32,86,101,114,115,105,111,110,32,110,97,109,101,32,48,46,50,46,53,32,40,50,53,41] (39)
type: "Buffer"
I would like to know how to convert it to a text string (decoding the characters), I tried with toString('utf8')
but still printing [object Object]
, is there any other way to do it?
The resulting value must be SNMP Agent 4A Version name 0.2.5 (25)--SysDescr
.
pdta: the database I'm working with is postgresql and a column of the table I use json saves.