Looking for some help on serializing a nested case object using json4s. The wrinkle is that the case object is decided at runtime, so it seems I\'d need access to the outer form