save master to json