Implemented JSON message parsing