{"issue":{"created_at":"2011-12-11T19:22:10Z","state":"open","updated_at":"2011-12-11T21:23:11Z","comments":4,"user":{"gravatar_id":"e69bb013b06b31d39433b5ce6c0f136f","id":777508,"url":"https://api.github.com/users/kufi","avatar_url":"https://secure.gravatar.com/avatar/e69bb013b06b31d39433b5ce6c0f136f?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","login":"kufi"},"body":"I've experienced a rather strange error with the @Ignore statement.\r\n\r\nGiven the following class:\r\n```\r\ncase class ConcreteClass(@Ignore var file: File = null) extends AbstractClass\r\n```\r\n\r\nBase class\r\n```\r\n    abstract class AbstractClass(@Key(\"_id\")val id:ObjectId = new ObjectId, var text:String)\r\n```\r\n\r\nWhat I now get on serialization is the following error:\r\njson can't serialize type : class java.io.File\r\nI stepped through it with the debugger and it seems to ignore the @Ignore statement in the class \"ConcreteClass\".","assignee":null,"pull_request":{"patch_url":null,"html_url":null,"diff_url":null},"id":2517105,"number":22,"labels":[],"title":"Strange error with @Ignore","html_url":"https://github.com/novus/salat/issues/22","closed_at":null,"url":"https://api.github.com/repos/novus/salat/issues/22","milestone":null},"action":"created","comment":{"created_at":"2011-12-11T21:23:11Z","updated_at":"2011-12-11T21:23:11Z","user":{"gravatar_id":"07db618a46f03285f40bec46a80c903e","id":293393,"url":"https://api.github.com/users/rktoomey","avatar_url":"https://secure.gravatar.com/avatar/07db618a46f03285f40bec46a80c903e?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","login":"rktoomey"},"body":"Suggestion for a more idiomatic concrete case class:\r\n\r\ncase class ConcreteClass(@Key(\"_id\") val id: ObjectId = new ObjectId, val text: Option[String] = None, @Ignore file: File = new java.io.File(\".\"))","id":3099768,"url":"https://api.github.com/repos/novus/salat/issues/comments/3099768"}}