{"action":"created","issue":{"url":"https://api.github.com/repos/go-yaml/yaml/issues/13","labels_url":"https://api.github.com/repos/go-yaml/yaml/issues/13/labels{/name}","comments_url":"https://api.github.com/repos/go-yaml/yaml/issues/13/comments","events_url":"https://api.github.com/repos/go-yaml/yaml/issues/13/events","html_url":"https://github.com/go-yaml/yaml/issues/13","id":35206600,"number":13,"title":"Feature request: json.RawMessage equivalent","user":{"login":"michaelsauter","id":215455,"avatar_url":"https://avatars.githubusercontent.com/u/215455?v=3","gravatar_id":"","url":"https://api.github.com/users/michaelsauter","html_url":"https://github.com/michaelsauter","followers_url":"https://api.github.com/users/michaelsauter/followers","following_url":"https://api.github.com/users/michaelsauter/following{/other_user}","gists_url":"https://api.github.com/users/michaelsauter/gists{/gist_id}","starred_url":"https://api.github.com/users/michaelsauter/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/michaelsauter/subscriptions","organizations_url":"https://api.github.com/users/michaelsauter/orgs","repos_url":"https://api.github.com/users/michaelsauter/repos","events_url":"https://api.github.com/users/michaelsauter/events{/privacy}","received_events_url":"https://api.github.com/users/michaelsauter/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":12,"created_at":"2014-06-07T11:37:16Z","updated_at":"2015-05-25T16:28:55Z","closed_at":null,"body":"It would be great to have sth. similar to http://golang.org/pkg/encoding/json/#RawMessage.\r\n\r\nI'm using go-yaml in http://github.com/michaelsauter/crane and would like to unmarshal the JSON/YAML partially (to provide defaults for objects inside arrays)."},"comment":{"url":"https://api.github.com/repos/go-yaml/yaml/issues/comments/105262896","html_url":"https://github.com/go-yaml/yaml/issues/13#issuecomment-105262896","issue_url":"https://api.github.com/repos/go-yaml/yaml/issues/13","id":105262896,"user":{"login":"niemeyer","id":378683,"avatar_url":"https://avatars.githubusercontent.com/u/378683?v=3","gravatar_id":"","url":"https://api.github.com/users/niemeyer","html_url":"https://github.com/niemeyer","followers_url":"https://api.github.com/users/niemeyer/followers","following_url":"https://api.github.com/users/niemeyer/following{/other_user}","gists_url":"https://api.github.com/users/niemeyer/gists{/gist_id}","starred_url":"https://api.github.com/users/niemeyer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/niemeyer/subscriptions","organizations_url":"https://api.github.com/users/niemeyer/orgs","repos_url":"https://api.github.com/users/niemeyer/repos","events_url":"https://api.github.com/users/niemeyer/events{/privacy}","received_events_url":"https://api.github.com/users/niemeyer/received_events","type":"User","site_admin":false},"created_at":"2015-05-25T16:28:55Z","updated_at":"2015-05-25T16:28:55Z","body":"@dvirsky That goes beyond the goals of the yaml package, but there are other packages available for such direct map-to-struct conversion (e.g. https://github.com/mitchellh/mapstructure)."}}