Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I convert a case class to a lift-json jobject class?

Tags:

json

scala

lift

I have a case class

case class Doc(title:String, ....)

which I want to convert to a lift-json JObjectso I can more easily use JObject methods merge, etc.

like image 579
tommy chheng Avatar asked Jun 29 '11 17:06

tommy chheng


1 Answers

Extraction.decompose(Doc("foo", ...))
like image 90
Joni Avatar answered Oct 01 '22 05:10

Joni