expand json object in sendMessage()