title: Play how to implement an implicit Writes or Format for a case class including an Enumeration
body: <p>Following <a href="https://stackoverflow.com/questions/45259710/how-to-bind-an-enum-to-a-playframework-form">this answer</a> shows how to bind an Enumeration to a form using a case class.</p>
  
  <p>However in Play 2.7.3 this code fails with:</p>
  
  <pre><code>No Json serializer found for type jura.SearchRequest. Try to implement an implicit Writes or Format for this type.
  </code></pre>
  
  <p>When I implement the formatter:</p>
  
  <pre><code>object SearchRequest {
    implicit val searchRequestFormat: OFormat[SearchRequest] = Json.format[SearchRequest]
  }
  </code></pre>
  
  <p>I get </p>
  
  <blockquote>
    <p>No instance of play.api.libs.json.Format is available for
    scala.Enumeration.Value in the implicit scope</p>
  </blockquote>
  
  <p><em>Should I be trying to write a formatter for the system scala.Enumeration type?<br>
  Or is there another way to implement a formatter when Enumerations are involved?</em></p>
  
  <p>Test case <a href="https://github.com/jethrogillgren/play-samples" rel="nofollow noreferrer">here</a>.</p>