I hava a Reads[T]. I would like to parse a Json object which is expected to be an array of T\'s. Is there a simple way to obtain a Reads[Seq[T]]<
Reads[T]
T
Reads[Seq[T]]<
There is a method for this in the Reads companion object: Reads.seq. Its parameter is usually implicit, but you can always call it explicitly if you want:
Reads
Reads.seq
val a: Reads[T] = ... val b: Reads[Seq[T]] = Reads.seq(a)