{"action":"opened","issue":{"url":"https://api.github.com/repos/sunng87/handlebars-rust/issues/19","labels_url":"https://api.github.com/repos/sunng87/handlebars-rust/issues/19/labels{/name}","comments_url":"https://api.github.com/repos/sunng87/handlebars-rust/issues/19/comments","events_url":"https://api.github.com/repos/sunng87/handlebars-rust/issues/19/events","html_url":"https://github.com/sunng87/handlebars-rust/issues/19","id":67913898,"number":19,"title":"Consider using rustc_serialize::json::encode to obtain json","user":{"login":"hugoduncan","id":54043,"avatar_url":"https://avatars.githubusercontent.com/u/54043?v=3","gravatar_id":"","url":"https://api.github.com/users/hugoduncan","html_url":"https://github.com/hugoduncan","followers_url":"https://api.github.com/users/hugoduncan/followers","following_url":"https://api.github.com/users/hugoduncan/following{/other_user}","gists_url":"https://api.github.com/users/hugoduncan/gists{/gist_id}","starred_url":"https://api.github.com/users/hugoduncan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hugoduncan/subscriptions","organizations_url":"https://api.github.com/users/hugoduncan/orgs","repos_url":"https://api.github.com/users/hugoduncan/repos","events_url":"https://api.github.com/users/hugoduncan/events{/privacy}","received_events_url":"https://api.github.com/users/hugoduncan/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-04-12T13:19:07Z","updated_at":"2015-04-12T13:19:07Z","closed_at":null,"body":"Rather than force every structure to implement the `ToJson` trait, it might be preferable to allow users to just add a `#[derive(RustcEncodable)]` on their structs, and handlebars can obtain a JSON value via the `rustc_serialize::json::encode` function."}}