title: Mapping values to case class in json4s
body: <p>Say I have the following:</p>
  
  <pre><code>[ {
      "job_id": "1",
      "status": "running"
    },
    {
      "job_id": "0",
      "status": "finished"
    }]
  </code></pre>
  
  <p>Could I somehow do the following with json4s:</p>
  
  <pre><code>case class Job(job_id: Int, status: JobStatus)
  
  abstract class JobStatus
  
  case class JobFinished extends JobStatus
  
  case class JobRunning extends JobStatus
  
  ... some  magic is probably needed here
  </code></pre>
  
  <p>Such that extracting the first snippet would result in:</p>
  
  <pre><code>[ Job(1, JobRunning()), Job(0, JobFinished())]
  </code></pre>