Make file structure from json file