parse message as json