I have these 2 case classes: Topic and Report (definitions below):
case class Topic(name:String, queryWords:Set[String])
case class Report(dateRange: org.joda.time.Interval, queryWord: String, topics: Map[Topic,Boolean], allOtherTopics: Map[Topic,Boolean])
I have a list of reports which I want to serialize: reports: List[Report]
but it gives me a scala.MatchError
..
val writer = new BufferedWriter(new FileWriter(file))
Serialization.write(reports, writer) <--error right here
..
beginning or stack trace:
scala.MatchError: (Topic(steam,Set(steam)),true) (of class scala.Tuple2)
at net.liftweb.json.Extraction$$anonfun$decompose$1.apply(Extraction.sca
la:82) ~[lift-json_2.10-2.5-RC6.jar:2.5-RC6]
..
Q: What is wrong with my deserialization?
I serialize List[Topic]
fine. Does lift/scala have problems serializing maps?