Initital version to receive the messages and decode from JSON