Convert a file system tree to a blob of json