add categories to json