javascript coding to change msg.payload to "content",
It should be something like this; To much quotation marks in your data names now.
msg.payload = {chatId :12345678, type : 'message', content : msg.payload};