{"action":"created","issue":{"url":"https://api.github.com/repos/gluc/data.tree/issues/54","repository_url":"https://api.github.com/repos/gluc/data.tree","labels_url":"https://api.github.com/repos/gluc/data.tree/issues/54/labels{/name}","comments_url":"https://api.github.com/repos/gluc/data.tree/issues/54/comments","events_url":"https://api.github.com/repos/gluc/data.tree/issues/54/events","html_url":"https://github.com/gluc/data.tree/issues/54","id":132347474,"number":54,"title":"Auto name","user":{"login":"gluc","id":626832,"avatar_url":"https://avatars.githubusercontent.com/u/626832?v=3","gravatar_id":"","url":"https://api.github.com/users/gluc","html_url":"https://github.com/gluc","followers_url":"https://api.github.com/users/gluc/followers","following_url":"https://api.github.com/users/gluc/following{/other_user}","gists_url":"https://api.github.com/users/gluc/gists{/gist_id}","starred_url":"https://api.github.com/users/gluc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gluc/subscriptions","organizations_url":"https://api.github.com/users/gluc/orgs","repos_url":"https://api.github.com/users/gluc/repos","events_url":"https://api.github.com/users/gluc/events{/privacy}","received_events_url":"https://api.github.com/users/gluc/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2016-02-09T07:01:11Z","updated_at":"2016-02-22T10:45:55Z","closed_at":null,"body":"For some cases, no natural id/name exists when converting e.g. a list of lists to data.tree. Currently, the user has to create an artificial id so the FromListExplicit method can separate the nodes. It would be useful if the conversion allowed to attribute automatically synthetic names. \r\nSee http://stackoverflow.com/questions/35278342/recursively-assign-unique-names-to-nodes-in-a-data-tree-object for details.\r\nOr http://stackoverflow.com/questions/35444968/read-json-file-into-a-data-frame-without-nested-lists"},"comment":{"url":"https://api.github.com/repos/gluc/data.tree/issues/comments/187119836","html_url":"https://github.com/gluc/data.tree/issues/54#issuecomment-187119836","issue_url":"https://api.github.com/repos/gluc/data.tree/issues/54","id":187119836,"user":{"login":"gluc","id":626832,"avatar_url":"https://avatars.githubusercontent.com/u/626832?v=3","gravatar_id":"","url":"https://api.github.com/users/gluc","html_url":"https://github.com/gluc","followers_url":"https://api.github.com/users/gluc/followers","following_url":"https://api.github.com/users/gluc/following{/other_user}","gists_url":"https://api.github.com/users/gluc/gists{/gist_id}","starred_url":"https://api.github.com/users/gluc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gluc/subscriptions","organizations_url":"https://api.github.com/users/gluc/orgs","repos_url":"https://api.github.com/users/gluc/repos","events_url":"https://api.github.com/users/gluc/events{/privacy}","received_events_url":"https://api.github.com/users/gluc/received_events","type":"User","site_admin":false},"created_at":"2016-02-22T10:45:55Z","updated_at":"2016-02-22T10:45:55Z","body":"@dylanbeaudette I added the mentioned auto name feature to the dev branch, so the following should now work out of the box:\r\n```r\r\nl <- structure(list(RuleStart = structure(list(Children = structure(list(\r\n  RuleOperator = structure(list(Children = structure(list(RuleRule = structure(list(\r\n    Children = NULL, RefId = \"49446\"), .Names = c(\"Children\", \r\n                                                  \"RefId\")), RuleRule = structure(list(Children = NULL, RefId = \"15976\"), .Names = c(\"Children\", \r\n                                                                                                                                     \"RefId\")), RuleRule = structure(list(Children = NULL, RefId = \"49444\"), .Names = c(\"Children\", \r\n                                                                                                                                                                                                                        \"RefId\")), RuleRule = structure(list(Children = NULL, RefId = \"15748\"), .Names = c(\"Children\", \r\n                                                                                                                                                                                                                                                                                                           \"RefId\")), RuleRule = structure(list(Children = NULL, RefId = \"49440\"), .Names = c(\"Children\", \r\n                                                                                                                                                                                                                                                                                                                                                                                              \"RefId\")), RuleRule = structure(list(Children = NULL, RefId = \"15746\"), .Names = c(\"Children\", \r\n                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 \"RefId\")), RuleRule = structure(list(Children = NULL, RefId = \"49449\"), .Names = c(\"Children\", \r\n                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    \"RefId\"))), .Names = c(\"RuleRule\", \"RuleRule\", \"RuleRule\", \r\n                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           \"RuleRule\", \"RuleRule\", \"RuleRule\", \"RuleRule\")), Type = \"product\"), .Names = c(\"Children\", \r\n                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           \"Type\"))), .Names = \"RuleOperator\")), .Names = \"Children\")), .Names = \"RuleStart\")\r\n\r\n# convert XML list into data.tree object\r\nn <- FromListExplicit(l$RuleStart, childrenName='Children')\r\nprint(n, \"Type\", \"RefId\")\r\n```\r\n\r\nI would appreciate some feedback. Do you think that's clear, and the documentation (`?as.list.Node`) is clear? Thx for your feedback."}}