this allows a more general usage of the management command, as we don't have to have all the json files at the root of the directory given.