save quiz in json file