added a break if the message is not JSON