parse and display json response from websocket