19
json 문자열로 간단한 bean 클래스를 직렬화하기 위해 lift-json을 어떻게 사용할 수 있는지 궁금합니다. (v2.0- M1). 내가 시도 :lift-json을 사용하여 JSon String으로 스칼라 객체 직렬화
val r = JsonDSL.pretty(JsonAST.render(myBean))
내가
[error] found : MyBean
[error] required: net.liftweb.json.JsonAST.JValue
감사를 얻고, -A
를? –
liftweb 3.1.0에서는 pretty (render())에서 prettyRender()로 이동했습니다. compactRender()를 할 수도 있습니다. 둘 다 net.liftweb.json.JsonAST._의 일부입니다. – ammills01