diff --git a/ninny/src/nrktkt/ninny/ToJsonInstances.scala b/ninny/src/nrktkt/ninny/ToJsonInstances.scala index e504c5b..4f06c02 100644 --- a/ninny/src/nrktkt/ninny/ToJsonInstances.scala +++ b/ninny/src/nrktkt/ninny/ToJsonInstances.scala @@ -46,7 +46,7 @@ trait ToJsonInstances */ implicit val unitToJson: ToSomeJson[Unit] = _ => JsonArray(Nil) - implicit def mapToJson[A: ToJson]: ToSomeJson[Map[String, A]] = + implicit def mapToJson[A: ToJson]: ToSomeJsonObject[Map[String, A]] = m => JsonObject(m.collect(Function.unlift { case (k, v) => v.toJson.map(k -> _)