updating to json