in core/src/main/scala/com/spotify/featran/json/Implicits.scala [28:35]
override def apply(c: HCursor): Decoder.Result[MDLRecord[String]] =
c.keys.toList.flatten.headOption match {
case None => Left(DecodingFailure("", c.history))
case Some(label) =>
for {
num <- c.downField(label).as[Double]
} yield MDLRecord(label, num)
}