{"action":"closed","issue":{"url":"https://api.github.com/repos/jwodder/javaproperties/issues/6","repository_url":"https://api.github.com/repos/jwodder/javaproperties","labels_url":"https://api.github.com/repos/jwodder/javaproperties/issues/6/labels{/name}","comments_url":"https://api.github.com/repos/jwodder/javaproperties/issues/6/comments","events_url":"https://api.github.com/repos/jwodder/javaproperties/issues/6/events","html_url":"https://github.com/jwodder/javaproperties/issues/6","id":500218040,"node_id":"MDU6SXNzdWU1MDAyMTgwNDA=","number":6,"title":"Support for multilevel dict","user":{"login":"Hoijima","id":8148216,"node_id":"MDQ6VXNlcjgxNDgyMTY=","avatar_url":"https://avatars1.githubusercontent.com/u/8148216?v=4","gravatar_id":"","url":"https://api.github.com/users/Hoijima","html_url":"https://github.com/Hoijima","followers_url":"https://api.github.com/users/Hoijima/followers","following_url":"https://api.github.com/users/Hoijima/following{/other_user}","gists_url":"https://api.github.com/users/Hoijima/gists{/gist_id}","starred_url":"https://api.github.com/users/Hoijima/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Hoijima/subscriptions","organizations_url":"https://api.github.com/users/Hoijima/orgs","repos_url":"https://api.github.com/users/Hoijima/repos","events_url":"https://api.github.com/users/Hoijima/events{/privacy}","received_events_url":"https://api.github.com/users/Hoijima/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2019-09-30T11:33:40Z","updated_at":"2019-10-08T18:54:29Z","closed_at":"2019-10-08T18:54:29Z","author_association":"NONE","body":"Hi i wanted to write an ansible module using your lib, but stumbled to the issue that it for some reason doesn't support multilevel dict.\r\n\r\nexample:\r\n```\r\n\r\nproperties=(''' \r\n--- \r\naeron:\r\n  cluster:\r\n    dir: some/cool/text\r\n''')\r\n```\r\n```\r\n\r\n    return re.sub(r'[^\\x20-\\x7E]|[\\\\#!=:]', _esc, field)\r\n  File \"/usr/lib/python3.6/re.py\", line 191, in sub\r\n    return _compile(pattern, flags).sub(repl, string, count)\r\nTypeError: expected string or bytes-like object\r\n```\r\nand i'm just using this code\r\n```\r\n    import yaml\r\n    import javaproperties\r\n\r\n    p = yaml.load(properties)\r\n\r\n    print(javaproperties.dumps(p))\r\n```\r\n\r\nAm i doing something wrong here? Just didn't fund any hint in the doc's that it maybe unsupported"}}
{"actor":{"display_login":"jwodder"}}