title: JSON response with Http AKKA and case classes
body: <p>I would like to build a simple stub server with several routes using Http AKKA.
  I have the following case class:</p>
  
  <pre><code>  case class Person(name: String, age: Int)
  
    object Person {
      implicit def cardJsonFormat: RootJsonFormat[Person] = jsonFormat2(Person.apply)
    }
  </code></pre>
  
  <p>How can I return this case class as a JSON response.</p>
  
  <p>My route looks like:</p>
  
  <pre><code>  case class Person(name: String, age: Int)
  
    def route =
      get {
        path("person") {
          complete {
  
          }
        }
      }
  </code></pre>