{"action":"created","issue":{"url":"https://api.github.com/repos/Jumpscale/python-consistent-toml/issues/19","labels_url":"https://api.github.com/repos/Jumpscale/python-consistent-toml/issues/19/labels{/name}","comments_url":"https://api.github.com/repos/Jumpscale/python-consistent-toml/issues/19/comments","events_url":"https://api.github.com/repos/Jumpscale/python-consistent-toml/issues/19/events","html_url":"https://github.com/Jumpscale/python-consistent-toml/issues/19","id":109984744,"number":19,"title":"Nested table issue","user":{"login":"zaibon","id":303164,"avatar_url":"https://avatars.githubusercontent.com/u/303164?v=3","gravatar_id":"","url":"https://api.github.com/users/zaibon","html_url":"https://github.com/zaibon","followers_url":"https://api.github.com/users/zaibon/followers","following_url":"https://api.github.com/users/zaibon/following{/other_user}","gists_url":"https://api.github.com/users/zaibon/gists{/gist_id}","starred_url":"https://api.github.com/users/zaibon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zaibon/subscriptions","organizations_url":"https://api.github.com/users/zaibon/orgs","repos_url":"https://api.github.com/users/zaibon/repos","events_url":"https://api.github.com/users/zaibon/events{/privacy}","received_events_url":"https://api.github.com/users/zaibon/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/Jumpscale/python-consistent-toml/labels/bug","name":"bug","color":"fc2929"}],"state":"open","locked":false,"assignee":{"login":"amrhassan","id":130985,"avatar_url":"https://avatars.githubusercontent.com/u/130985?v=3","gravatar_id":"","url":"https://api.github.com/users/amrhassan","html_url":"https://github.com/amrhassan","followers_url":"https://api.github.com/users/amrhassan/followers","following_url":"https://api.github.com/users/amrhassan/following{/other_user}","gists_url":"https://api.github.com/users/amrhassan/gists{/gist_id}","starred_url":"https://api.github.com/users/amrhassan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/amrhassan/subscriptions","organizations_url":"https://api.github.com/users/amrhassan/orgs","repos_url":"https://api.github.com/users/amrhassan/repos","events_url":"https://api.github.com/users/amrhassan/events{/privacy}","received_events_url":"https://api.github.com/users/amrhassan/received_events","type":"User","site_admin":false},"milestone":null,"comments":12,"created_at":"2015-10-06T11:01:54Z","updated_at":"2015-10-26T17:29:50Z","closed_at":null,"body":"What I would like to create is\r\n```\r\n[[listen]]\r\nAddr = \":8389\"\r\n\r\n   [[listen.tls]]\r\n   cert = \"cert\"\r\n```\r\n\r\nI tried two different manner, but the result is not the one expected.  What the proper way to create nested table ?\r\n```\r\nIn [7]: cfg = contoml.new()\r\n\r\nIn [8]: cfg.array('listen').append({'Addr':':8389'})\r\n\r\nIn [9]: cfg.array('listen.tls').append({'cert':'cert'})\r\n\r\nIn [10]: print cfg.dumps()\r\n[[listen]]\r\nAddr = \":8389\"\r\n\r\n[[\"listen.tls\"]]\r\ncert = \"cert\"\r\n```\r\n```\r\nIn [11]: cfg = contoml.new()\r\n\r\nIn [12]: cfg.array('listen').append({'Addr':':8389'})\r\n\r\nIn [13]: cfg.array('listen').append({'tls':{'cert':'cert'}})\r\n\r\nIn [14]: print cfg.dumps()\r\n[[listen]]\r\nAddr = \":8389\"\r\n\r\n[[listen]]\r\ntls = {cert = \"cert\"}\r\n```"},"comment":{"url":"https://api.github.com/repos/Jumpscale/python-consistent-toml/issues/comments/151217471","html_url":"https://github.com/Jumpscale/python-consistent-toml/issues/19#issuecomment-151217471","issue_url":"https://api.github.com/repos/Jumpscale/python-consistent-toml/issues/19","id":151217471,"user":{"login":"amrhassan","id":130985,"avatar_url":"https://avatars.githubusercontent.com/u/130985?v=3","gravatar_id":"","url":"https://api.github.com/users/amrhassan","html_url":"https://github.com/amrhassan","followers_url":"https://api.github.com/users/amrhassan/followers","following_url":"https://api.github.com/users/amrhassan/following{/other_user}","gists_url":"https://api.github.com/users/amrhassan/gists{/gist_id}","starred_url":"https://api.github.com/users/amrhassan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/amrhassan/subscriptions","organizations_url":"https://api.github.com/users/amrhassan/orgs","repos_url":"https://api.github.com/users/amrhassan/repos","events_url":"https://api.github.com/users/amrhassan/events{/privacy}","received_events_url":"https://api.github.com/users/amrhassan/received_events","type":"User","site_admin":false},"created_at":"2015-10-26T17:29:50Z","updated_at":"2015-10-26T17:29:50Z","body":"@grimpy did. contoml needed some major internal rewriting to make TOML construction from scratch correct (since it was not in the initial requirements), and it was decided that the extra work and complexity isn't worth it when all that is needed is a TOML formatter."}}