Changed save format to json