@AudeF would you be able to explain in some more detail what your site is about and what you’re trying to do? Why do you need to duplicate the strucuture of a category and all its subcategories?
Can you also show your work in some more detail here, eg how exactly did you export the json and then import it again?
Some time has passed since you asked so perhaps in the meantime you’ve figured some things out?
Well, I’ve set the parent category manually, so it’s ok for now, but I’d like to not have to do it again next year .
We use our forum to discuss the tests of our software with external users. We have a new version each year, and we don’t want to mix new tests with older discussions, so we create a new category for each version. The sub-categories are mostly the same each time so I don’t want to create them by hand again and again .