Message format changed

The format of the message has been changed from the original one:
message header + content + message footer to the new one: a JSON string,
with message type and message content