update json and so on