Seq[T]
, List[T]
, Set[T]
, Array[T]
are supported.
Note that you need a JsonRW[T]
given instance.
Seq.empty[String].toJson
// []
Seq("a", "b").toJson
// ["a","b"]
""" [] """.parseJson[Seq[String]]
// Seq()
""" ["a","b"] """.parseJson[Seq[String]]
// Seq(a,b)