i want ro make a response
val res: List[Categories] = CategoryObj.getCategories
complete(OK, res)
i wrote an implicit json formats
implicit val jsCat = jsonFormat3(Category)
implicit val jsCats = jsonFormat1(Seq[Category])
but for a second line i got three errors
Error:(8, 25) inferred type arguments [Seq[DAO.Category],Seq[DAO.Category]] do not conform to method jsonFormat1's type parameter bounds [P1,T <: Product] implicit val jsCats = jsonFormat1(Seq[Category])
Error:(8, 40) type mismatch; found : Seq[DAO.Category] => Seq[DAO.Category] required: P1 => T Note: implicit value jsCats is not applicable here because it comes after the application point and it lacks an explicit result type implicit val jsCats = jsonFormat1(Seq[Category])
Error:(8, 36) could not find implicit value for evidence parameter of type spray.json.DefaultJsonProtocol.JF[P1] (Cannot find JsonWriter or JsonFormat type class for P1) implicit val jsCats = jsonFormat1(Seq[Category])
And i can't get how to deal with them