{"action":"opened","issue":{"url":"https://api.github.com/repos/propensive/rapture/issues/240","repository_url":"https://api.github.com/repos/propensive/rapture","labels_url":"https://api.github.com/repos/propensive/rapture/issues/240/labels{/name}","comments_url":"https://api.github.com/repos/propensive/rapture/issues/240/comments","events_url":"https://api.github.com/repos/propensive/rapture/issues/240/events","html_url":"https://github.com/propensive/rapture/issues/240","id":178629522,"number":240,"title":"Problem in json-parsing case classes with optional fields:","user":{"login":"johannegger","id":7631765,"avatar_url":"https://avatars.githubusercontent.com/u/7631765?v=3","gravatar_id":"","url":"https://api.github.com/users/johannegger","html_url":"https://github.com/johannegger","followers_url":"https://api.github.com/users/johannegger/followers","following_url":"https://api.github.com/users/johannegger/following{/other_user}","gists_url":"https://api.github.com/users/johannegger/gists{/gist_id}","starred_url":"https://api.github.com/users/johannegger/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/johannegger/subscriptions","organizations_url":"https://api.github.com/users/johannegger/orgs","repos_url":"https://api.github.com/users/johannegger/repos","events_url":"https://api.github.com/users/johannegger/events{/privacy}","received_events_url":"https://api.github.com/users/johannegger/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-09-22T14:42:46Z","updated_at":"2016-09-22T14:42:46Z","closed_at":null,"body":"this code shows the problem:\r\n```\r\nimport rapture.core.modes.returnTry._\r\ncase class Foo(value:Option[Int])\r\nval ser = Json.format(Json(true))   //String = \"true\"\r\nJson.parse(ser).flatMap(_.as[Foo]) //result is: Success(Bar(None))\r\n```\r\nThe parser gets a string and decides that it is a valid Foo. Imho it should fail since the type is String and not Object.\r\nI tested it with the jawn and the circe backend but i think the problem lies deeper. \r\n\r\n"}}
{"actor":{"display_login":"johannegger"}}