{"action":"created","issue":{"url":"https://api.github.com/repos/aaubry/YamlDotNet/issues/157","labels_url":"https://api.github.com/repos/aaubry/YamlDotNet/issues/157/labels{/name}","comments_url":"https://api.github.com/repos/aaubry/YamlDotNet/issues/157/comments","events_url":"https://api.github.com/repos/aaubry/YamlDotNet/issues/157/events","html_url":"https://github.com/aaubry/YamlDotNet/issues/157","id":121245002,"number":157,"title":"Empty string not serialized","user":{"login":"npateman","id":1122645,"avatar_url":"https://avatars.githubusercontent.com/u/1122645?v=3","gravatar_id":"","url":"https://api.github.com/users/npateman","html_url":"https://github.com/npateman","followers_url":"https://api.github.com/users/npateman/followers","following_url":"https://api.github.com/users/npateman/following{/other_user}","gists_url":"https://api.github.com/users/npateman/gists{/gist_id}","starred_url":"https://api.github.com/users/npateman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/npateman/subscriptions","organizations_url":"https://api.github.com/users/npateman/orgs","repos_url":"https://api.github.com/users/npateman/repos","events_url":"https://api.github.com/users/npateman/events{/privacy}","received_events_url":"https://api.github.com/users/npateman/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":{"login":"aaubry","id":630495,"avatar_url":"https://avatars.githubusercontent.com/u/630495?v=3","gravatar_id":"","url":"https://api.github.com/users/aaubry","html_url":"https://github.com/aaubry","followers_url":"https://api.github.com/users/aaubry/followers","following_url":"https://api.github.com/users/aaubry/following{/other_user}","gists_url":"https://api.github.com/users/aaubry/gists{/gist_id}","starred_url":"https://api.github.com/users/aaubry/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aaubry/subscriptions","organizations_url":"https://api.github.com/users/aaubry/orgs","repos_url":"https://api.github.com/users/aaubry/repos","events_url":"https://api.github.com/users/aaubry/events{/privacy}","received_events_url":"https://api.github.com/users/aaubry/received_events","type":"User","site_admin":false},"milestone":null,"comments":4,"created_at":"2015-12-09T13:56:09Z","updated_at":"2015-12-14T17:27:29Z","closed_at":null,"body":"I have a document which has the following section in it,\r\n\r\n```\r\ndefaults:\r\n  -\r\n    scope:\r\n      path: \"\"\r\n      type: \"pages\"\r\n    values:\r\n      layout: \"page\"\r\n      comments: true\r\n  -\r\n    scope:\r\n      path: \"\"\r\n      type: \"posts\"\r\n    values:\r\n      layout: \"post\"\r\n      comments: true\r\n```\r\n\r\nIf I deserialise that section and then serialise it again it comes out like this,\r\n\r\n```\r\ndefaults:\r\n- scope:\r\n    path: \r\n    type: pages\r\n  values:\r\n    layout: page\r\n    comments: true\r\n- scope:\r\n    path: \r\n    type: posts\r\n  values:\r\n    layout: post\r\n    comments: true\r\n```\r\n\r\nThe problem is that I need the pairs of quotes in the path fields (\"\") to denote an empty string.  Is there some configuration option I need to change to achieve this?\r\n\r\nNick."},"comment":{"url":"https://api.github.com/repos/aaubry/YamlDotNet/issues/comments/164502276","html_url":"https://github.com/aaubry/YamlDotNet/issues/157#issuecomment-164502276","issue_url":"https://api.github.com/repos/aaubry/YamlDotNet/issues/157","id":164502276,"user":{"login":"aaubry","id":630495,"avatar_url":"https://avatars.githubusercontent.com/u/630495?v=3","gravatar_id":"","url":"https://api.github.com/users/aaubry","html_url":"https://github.com/aaubry","followers_url":"https://api.github.com/users/aaubry/followers","following_url":"https://api.github.com/users/aaubry/following{/other_user}","gists_url":"https://api.github.com/users/aaubry/gists{/gist_id}","starred_url":"https://api.github.com/users/aaubry/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aaubry/subscriptions","organizations_url":"https://api.github.com/users/aaubry/orgs","repos_url":"https://api.github.com/users/aaubry/repos","events_url":"https://api.github.com/users/aaubry/events{/privacy}","received_events_url":"https://api.github.com/users/aaubry/received_events","type":"User","site_admin":false},"created_at":"2015-12-14T17:27:29Z","updated_at":"2015-12-14T17:27:29Z","body":"I have committed a fix for this issue. Can you try it and confirm that this fixes your problem? Thanks.\r\n\r\nOT: Writing a single char to the output comes from the C parser from which this code is based. It was implemented that way, and during the conversion to C# I made as few changes as possible. Maybe it is not the most efficient design, though, I don't know... :)"}}