create file tree based on JSON