converting message from JSON to check its status