Correcting the JSON export of categories