convert a directory tree to json