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