Updating JSON exchange through websocket and REST