Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- case class User (username:String, password:String)
- import net.liftweb.json._
- implicit val formats = DefaultFormats
- val user = User("bufferine", "secret")
- val userJSON = Serialization.write(user) //{"username":"bufferine", "password":"secret"}
- val userBack = Serialization.read[User](userJSON)
Add Comment
Please, Sign In to add comment