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 = new Game(Map("a"->new Plan(new Some(new Action(1,None)))))
implicit val formats = net.liftweb.json.DefaultFormats
game must beEqualTo( Serialization.read[Game]
(Serialization.write(game)))
Test fails.
Cheers,
-A
--
You received this message because you are subscribed to the Google Groups
"Lift" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/liftweb?hl=en.