Creates a json file for the directory structure.