public void run() {
            while (true) {
                try {
                    updateJson();
                    Thread.sleep(1000);
                } catch (InterruptedException e) {
                    e.printStackTrace();
                }
            }
        }