File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
shared/src/main/scala/io/kaitai/struct Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change 11package io .kaitai .struct
22
33import io .kaitai .struct .translators .CommonLiterals
4+ import scala .collection
45
56/** Common trait for all objects that can be serialized as JSON. */
67trait Jsonable {
@@ -22,7 +23,7 @@ object JSON extends CommonLiterals {
2223 case v : Jsonable => v.toJson
2324 case v : Int => v.toString
2425 case v : String => stringToJson(v)
25- case v : Seq [_] => seqToJson(v)
26+ case v : collection. Seq [_] => seqToJson(v)
2627 case v : Map [String , _] => mapToJson(v)
2728 }
2829 }
@@ -33,7 +34,7 @@ object JSON extends CommonLiterals {
3334 def stringToJson (str : String ): String =
3435 doStringLiteral(str)
3536
36- def seqToJson (obj : Seq [_]): String =
37+ def seqToJson (obj : collection. Seq [_]): String =
3738 " [" + obj.map((x) => stringify(x)).mkString(" ," ) + " ]"
3839
3940 def mapToJson (obj : Map [String , Any ]): String = {
You can’t perform that action at this time.
0 commit comments