saving old categories json format