title: Request body to case class conversion in play & scala
body: <p>I've a case class similar to this <a href="https://stackoverflow.com/questions/22788970/using-json-implicit-reader">found here</a> :</p>
  
  <pre><code>case class WebCategory(topGroupName: String,
                         topGroupID: String,
                         webCategoryName : String,
                         webCategoryID : String,
                         subWebCats:Seq[SubWebCat])
  
  case class SubWebCat(name:String, id:String)
  </code></pre>
  
  <p>And my request body json is having the exact same key names as of case class. For ex:</p>
  
  <pre><code>{
    "webCategoryID" : "blah",
    "webCategoryName" : "abcabc",
    "topGroupID" : "blah",
    "topGroupName" : "namehere",
    "subWebCats" : [
      {
        "name" : "blah",
        "id" : "idblah"
      },
              {
        "name" : "another blah",
        "id" : "another idblah"
      } 
  
    ]
  
  }
  </code></pre>
  
  <p>The case class &amp; req body keys are same then is it possible to directly build the case class object from request json? If it is possible then how can I do this? Any references would help. If it is not possible then this means I've to define my custom implicit converter explained in the <a href="https://stackoverflow.com/questions/22788970/using-json-implicit-reader">answer</a> in which I don't have any problem implementing it.</p>
  
  <p>Note: I'm using Play 2.3 &amp; Scala 11 for my development</p>