title: Scala convert object to JSON response
body: <p>How can I convert the following case class object to JSON response, the case class contains multiple nested object value.</p>
  
  <p>I got exception when I use <code>jsonFormat5(responseData)</code></p>
  
  <pre><code>val simpleBanner1 = Banner(112, "http://dummyimage.com/300x250", 300, 250)
  val responseData = BidResponse(uuid, "XN2zZQABxJsKK0jU4QnIzw", campaignData.bid, Option("4548"), Option(simpleBanner1))
  </code></pre>
  
  <h3>Exception</h3>
  
  <pre><code>Error:(63, 47) could not find implicit value for evidence parameter of type bidder.RestService.JF[Option[bidder.Banner]]
  implicit val bidResponseFormat = jsonFormat5(BidResponse)
  
  Error:(63, 47) not enough arguments for method jsonFormat5: (implicit evidence$25: bidder.RestService.JF[String], implicit evidence$26: bidder.RestService.JF[String], implicit evidence$27: bidder.RestService.JF[Double], implicit evidence$28: bidder.RestService.JF[Option[String]], implicit evidence$29: bidder.RestService.JF[Option[bidder.Banner]], implicit evidence$30: scala.reflect.ClassTag[bidder.BidResponse])spray.json.RootJsonFormat[bidder.BidResponse].
  Unspecified value parameters evidence$29, evidence$30.
  implicit val bidResponseFormat = jsonFormat5(BidResponse)
  
  Error:(76, 28) Cannot find JsonWriter or JsonFormat type class for bidder.BidResponse
            responseData.toJson
  Error:(76, 28) not enough arguments for method toJson: (implicit writer: spray.json.JsonWriter[bidder.BidResponse])spray.json.JsValue.
  Unspecified value parameter writer.
            responseData.toJson
  </code></pre>