Dear All,
I am wondering would you please tell me how can I use lift-json (2.0
snapshots) to serialize and deserialize the following scala case
classes.
case class Plan( plan:Option[Action] )
case class Game( game:Map[String,Plan])
case class Action(id:Int, subAction : Option[Action])
val game
Sometimes the serialization code needs a helping hand, using:
implicit val format =
Serialization.formats(ShortTypeHints(List(classOf[Plan], classOf[Action],
classOf[Game])))
instead of the defaults makes it work here.
Cheers,
Justin Reardon
On 2010-02-10, at 11:42 , Ali wrote: