{"action":"opened","issue":{"url":"https://api.github.com/repos/ancane/haldr/issues/1","labels_url":"https://api.github.com/repos/ancane/haldr/issues/1/labels{/name}","comments_url":"https://api.github.com/repos/ancane/haldr/issues/1/comments","events_url":"https://api.github.com/repos/ancane/haldr/issues/1/events","html_url":"https://github.com/ancane/haldr/issues/1","id":70678080,"number":1,"title":"How to use this in a HttpService?","user":{"login":"rabejens","id":8402886,"avatar_url":"https://avatars.githubusercontent.com/u/8402886?v=3","gravatar_id":"","url":"https://api.github.com/users/rabejens","html_url":"https://github.com/rabejens","followers_url":"https://api.github.com/users/rabejens/followers","following_url":"https://api.github.com/users/rabejens/following{/other_user}","gists_url":"https://api.github.com/users/rabejens/gists{/gist_id}","starred_url":"https://api.github.com/users/rabejens/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rabejens/subscriptions","organizations_url":"https://api.github.com/users/rabejens/orgs","repos_url":"https://api.github.com/users/rabejens/repos","events_url":"https://api.github.com/users/rabejens/events{/privacy}","received_events_url":"https://api.github.com/users/rabejens/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-04-24T12:30:51Z","updated_at":"2015-04-24T12:30:51Z","closed_at":null,"body":"I can build resources with haldr which works fine. However, when I want to return them in a `HttpService`, I don't know how I have to do this.\r\n\r\nExample:\r\n```scala\r\ntrait MyService extends HttpService {\r\n\r\n  def myRoute = path(\"\") {\r\n    get {\r\n      val r: Resource = ... // works\r\n      complete(r) // <= ERROR! Cannot convert it to a ToResponseMarshallable\r\n    }\r\n  }\r\n}\r\n```\r\n\r\nI thought of importing `HalJsonProtocol._` but this is private just to `haldr`.\r\n\r\nSo how does one correctly turn `Resource`s into JSON?"}}