{"id":13942139,"url":"https://github.com/stla/dir2json","last_synced_at":"2025-04-14T14:24:37.408Z","repository":{"id":73101521,"uuid":"83069259","full_name":"stla/dir2json","owner":"stla","description":"JSON representation of hierarchical data, such as a directory structure","archived":false,"fork":false,"pushed_at":"2022-05-20T20:45:59.000Z","size":5681,"stargazers_count":7,"open_issues_count":0,"forks_count":3,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-28T03:24:27.465Z","etag":null,"topics":["d3","json","r","shiny-applications"],"latest_commit_sha":null,"homepage":"","language":"Less","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/stla.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null}},"created_at":"2017-02-24T18:08:55.000Z","updated_at":"2023-10-28T15:48:49.000Z","dependencies_parsed_at":"2023-03-15T05:00:11.915Z","dependency_job_id":null,"html_url":"https://github.com/stla/dir2json","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stla%2Fdir2json","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stla%2Fdir2json/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stla%2Fdir2json/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stla%2Fdir2json/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/stla","download_url":"https://codeload.github.com/stla/dir2json/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248895515,"owners_count":21179250,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["d3","json","r","shiny-applications"],"created_at":"2024-08-08T02:01:43.170Z","updated_at":"2025-04-14T14:24:37.379Z","avatar_url":"https://github.com/stla.png","language":"Less","funding_links":[],"categories":["Less"],"sub_categories":[],"readme":"# dir2json, an R package\r\n\r\nOriginally, this package only dealt with the hierarchical data given by \r\nthe structure of a folder, but now it can deal with any dataset with a \r\nhierarchical structure. \r\nIt provides a Shiny application (see below). \r\nAlso provides a function to get the tree view of a directory.\r\n\r\nThis package uses the DLL created by the Haskell libraries [jsondirtree](https://github.com/stla/jsondirtree) and [jsondirtreeR](https://github.com/stla/jsondirtreeR). They are standalone on \r\nWindows.\r\n\r\n```r\r\nlibrary(dir2json)\r\ndat \u003c- tibble::tribble(\r\n  ~level1, ~level2, ~level3, ~level4, \r\n  \"Beverages\", \"Water\", \"\", \"\", \r\n  \"Beverages\", \"Coffee\", \"\", \"\", \r\n  \"Beverages\", \"Tea\", \"Black tea\", \"\", \r\n  \"Beverages\", \"Tea\", \"White tea\", \"\", \r\n  \"Beverages\", \"Tea\", \"Green tea\", \"Sencha\", \r\n  \"Beverages\", \"Tea\", \"Green tea\", \"Gyokuro\", \r\n  \"Beverages\", \"Tea\", \"Green tea\", \"Matcha\", \r\n  \"Beverages\", \"Tea\", \"Green tea\", \"Pi Lo Chun\"\r\n)\r\nshinyDataTree(dat, root = FALSE)\r\n```\r\n\r\n![](https://raw.githubusercontent.com/stla/dir2json/master/inst/images/shinyDataTree.gif)\r\n\r\nThis kind of tree is called a *Reingold-Tilford tree network diagram*. It \r\nis produced with the help of **D3.js**.\r\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstla%2Fdir2json","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fstla%2Fdir2json","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstla%2Fdir2json/lists"}