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

1

9

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.

Lohengrin answered 29/6, 2011 at 17:22 Comment(0)
C
14
Extraction.decompose(Doc("foo", ...))
Constringe answered 29/6, 2011 at 18:7 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.