title: Play2 does not find my implicit Reads or Format for JSON
body: <p>This is my Search Object:</p>
  
  <pre><code>package models.helper
  import play.api.libs.json.Format
  import play.api.libs.json.JsValue
  import play.api.libs.json.JsObject
  import play.api.libs.json.JsString
  
  case class Search (name: String, `type`:String){
  
    implicit object SearchFormat extends Format[Search] {
      def reads(json: JsValue): Search = Search(
        (json \ "name").as[String],
        (json \ "type").as[String]
      )
  
      def writes(s: Search): JsValue = JsObject(Seq(
          "name" -&gt; JsString(s.name),
          "type" -&gt; JsString(s.`type`)
      ))  
    }
  }
  </code></pre>
  
  <p>I'm trying ot use this class when calling a webservice using WS:</p>
  
  <pre><code>val search = response.json.as[Search]
  </code></pre>
  
  <p>But the scala compiler keeps complaining on this line:</p>
  
  <blockquote>
    <p>No Json deserializer found for type models.helper.Search. Try to
    implement an implicit Reads or Format for this type.</p>
  </blockquote>
  
  <p>Could anybody tell me what I'm doing wrong?</p>
  
  <ul>
  <li>got the example from <a href="https://sites.google.com/site/play20zh/scala-developers/working-with-json" rel="nofollow">https://sites.google.com/site/play20zh/scala-developers/working-with-json</a></li>
  <li>this thread discusses the same issue but gives no solution, what example on what site? <a href="https://groups.google.com/forum/?fromgroups#!topic/play-framework/WTZrmQi5XxY" rel="nofollow">https://groups.google.com/forum/?fromgroups#!topic/play-framework/WTZrmQi5XxY</a></li>
  </ul>