{"action":"created","issue":{"url":"https://api.github.com/repos/nodeca/js-yaml/issues/290","repository_url":"https://api.github.com/repos/nodeca/js-yaml","labels_url":"https://api.github.com/repos/nodeca/js-yaml/issues/290/labels{/name}","comments_url":"https://api.github.com/repos/nodeca/js-yaml/issues/290/comments","events_url":"https://api.github.com/repos/nodeca/js-yaml/issues/290/events","html_url":"https://github.com/nodeca/js-yaml/issues/290","id":158358023,"number":290,"title":"[writer]Surround string by double quote instead of simple","user":{"login":"AlaricCalmette","id":2929516,"avatar_url":"https://avatars.githubusercontent.com/u/2929516?v=3","gravatar_id":"","url":"https://api.github.com/users/AlaricCalmette","html_url":"https://github.com/AlaricCalmette","followers_url":"https://api.github.com/users/AlaricCalmette/followers","following_url":"https://api.github.com/users/AlaricCalmette/following{/other_user}","gists_url":"https://api.github.com/users/AlaricCalmette/gists{/gist_id}","starred_url":"https://api.github.com/users/AlaricCalmette/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AlaricCalmette/subscriptions","organizations_url":"https://api.github.com/users/AlaricCalmette/orgs","repos_url":"https://api.github.com/users/AlaricCalmette/repos","events_url":"https://api.github.com/users/AlaricCalmette/events{/privacy}","received_events_url":"https://api.github.com/users/AlaricCalmette/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-06-03T12:39:15Z","updated_at":"2016-06-03T15:06:32Z","closed_at":null,"body":"I would like to be able to take a json object like this :\r\n```\r\n{\r\n    translation:\r\n        { \r\n            key: 'this_is_a_key',\r\n            value: 'this is a value'\r\n        }\r\n}\r\n```\r\n\r\nand output a yml file like this :\r\n```\r\n- translation :\r\n    key: \"this_is_a_key\"\r\n    value: \"this is a value\"\r\n```\r\n\r\nI've tried several method but was only able to achieve either\r\n\r\n```\r\n- translation :\r\n    key: this_is_a_key\r\n    value: this is a value\r\n```\r\n\r\nor \r\n\r\n\r\n```\r\n- translation :\r\n    key: '\"this_is_a_key\"'\r\n    value: '\"this is a value\"'\r\n```\r\n\r\nnote that in the latter this is not three quotes but a single quote followed by a double quote\r\n\r\nIs there any way to do this with this module?"},"comment":{"url":"https://api.github.com/repos/nodeca/js-yaml/issues/comments/223604746","html_url":"https://github.com/nodeca/js-yaml/issues/290#issuecomment-223604746","issue_url":"https://api.github.com/repos/nodeca/js-yaml/issues/290","id":223604746,"user":{"login":"dervus","id":1039540,"avatar_url":"https://avatars.githubusercontent.com/u/1039540?v=3","gravatar_id":"","url":"https://api.github.com/users/dervus","html_url":"https://github.com/dervus","followers_url":"https://api.github.com/users/dervus/followers","following_url":"https://api.github.com/users/dervus/following{/other_user}","gists_url":"https://api.github.com/users/dervus/gists{/gist_id}","starred_url":"https://api.github.com/users/dervus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dervus/subscriptions","organizations_url":"https://api.github.com/users/dervus/orgs","repos_url":"https://api.github.com/users/dervus/repos","events_url":"https://api.github.com/users/dervus/events{/privacy}","received_events_url":"https://api.github.com/users/dervus/received_events","type":"User","site_admin":false},"created_at":"2016-06-03T15:06:32Z","updated_at":"2016-06-03T15:06:32Z","body":"There's no settings for this at the moment. The dumper tries to choose \"minimal\" possible scalar style to represent each particular string.\r\n\r\nAbility to specify preferred scalar styles would be nice addition though. Contributions on this matter are welcomed."}}
{"actor":{"display_login":"dervus"}}