what method should I use to return the contents of a solace.message in human readable string
I am exploring the node.js SOLACE REST API. I got the pub/sub to work with the sample code to work substituting vpn/url/credentials.
The received message, however, has the payload plus a lot of other things and I couldn't isolate the payload by itself. I looked up the API (https://docs.solace.com/API-Developer-Online-Ref-Documentation/js/index.html) for class solace.Message and I saw methods associated with message such as getBinaryAttachment() and dump(Number flags). None of them does what I want which is to return a human readable string of the payload and nothing else. Can somebody help?