Fixed Json Parser when message contains multiple cmd/events
Improved perfomance in message process loop