Overall the easiest way to work with JSON is to have a case class mapping directly to the JSON
(same fields name, equivalent types, etc.).
case class Person(
  name: String,
  age: Int,
  hobbies: Seq[String],
  pet: Pet
)
case class Pet(
  name: String,
  `type`: String
)
// these...