{"action":"opened","issue":{"url":"https://api.github.com/repos/circe/circe/issues/899","repository_url":"https://api.github.com/repos/circe/circe","labels_url":"https://api.github.com/repos/circe/circe/issues/899/labels{/name}","comments_url":"https://api.github.com/repos/circe/circe/issues/899/comments","events_url":"https://api.github.com/repos/circe/circe/issues/899/events","html_url":"https://github.com/circe/circe/issues/899","id":327897129,"node_id":"MDU6SXNzdWUzMjc4OTcxMjk=","number":899,"title":"generic case class could not find implicit value for parameter encoder: io.circe.Encoder","user":{"login":"thiaguten","id":5503946,"node_id":"MDQ6VXNlcjU1MDM5NDY=","avatar_url":"https://avatars3.githubusercontent.com/u/5503946?v=4","gravatar_id":"","url":"https://api.github.com/users/thiaguten","html_url":"https://github.com/thiaguten","followers_url":"https://api.github.com/users/thiaguten/followers","following_url":"https://api.github.com/users/thiaguten/following{/other_user}","gists_url":"https://api.github.com/users/thiaguten/gists{/gist_id}","starred_url":"https://api.github.com/users/thiaguten/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thiaguten/subscriptions","organizations_url":"https://api.github.com/users/thiaguten/orgs","repos_url":"https://api.github.com/users/thiaguten/repos","events_url":"https://api.github.com/users/thiaguten/events{/privacy}","received_events_url":"https://api.github.com/users/thiaguten/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-05-30T20:59:46Z","updated_at":"2018-05-30T20:59:46Z","closed_at":null,"author_association":"NONE","body":"Hello everyone,\r\n\r\nI'm trying to transform a case class into json however the below error is occurring:\r\n\r\n```log\r\ncould not find implicit value for parameter encoder: io.circe.Encoder[JsonTest.Result]\r\n```\r\n\r\n```scala\r\nimport io.circe._, io.circe.generic.auto._, io.circe.parser._, io.circe.syntax._\r\n\r\nobject JsonTest extends App {\r\n\r\n  case class Field[A](field: String, value: A)\r\n  case class Result(key: String, value: String, fields: Seq[Field[_]])\r\n\r\n  val result = Result(\"code\", \"00000086\", Seq(Field[String](\"name\", \"thiago\"), Field[Int](\"age\", 29)))\r\n\r\n  val json = result.asJson.noSpaces\r\n\r\n  println(json)\r\n}\r\n```\r\n\r\nIs there a solution to this?\r\n\r\nThanks"}}
{"actor":{"display_login":"thiaguten"}}