title: POJO to JSON in Play framework
body: <p>Trying to get Play 2.0 to return JSON from a POJO. But I recieve the error </p>
  
  <pre><code>The method toJson(Writes&lt;A&gt;) in the type Json is not applicable for the arguments (Product)
  </code></pre>
  
  <p>And my code is:</p>
  
  <pre><code>public static Result index(String date) {
       Product item = new Product();
      return ok(Json.toJson(item));
  
     }
  </code></pre>
  
  <p>Any ideas?</p>